]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
Fix 保存路径去除/
authorqydysky <qydysky@foxmail.com>
Sun, 9 Apr 2023 02:32:11 +0000 (10:32 +0800)
committerqydysky <qydysky@foxmail.com>
Sun, 9 Apr 2023 02:32:11 +0000 (10:32 +0800)
Reply/stream.go

index 8172e9375c1724e3c972e071153d1f443a5739df..e695e6bcb6b0c56039dbe6244e0c65530ef5db6d 100644 (file)
@@ -560,7 +560,7 @@ func (t *M4SStream) getSavepath() {
        t.Current_save_path = t.config.save_path + "/" +
                time.Now().Format("2006_01_02-15_04_05") + "-" +
                strconv.Itoa(t.common.Roomid) + "-" +
-               strings.NewReplacer("\\", "", "\\/", "", ":", "", "*", "", "?", "", "\"", "", "<", "", ">", "", "|", "", "#", "").Replace(t.common.Title) + "-" +
+               strings.NewReplacer("\\", "", "/", "", ":", "", "*", "", "?", "", "\"", "", "<", "", ">", "", "|", "", "#", "").Replace(t.common.Title) + "-" +
                t.common.Qn[t.common.Live_qn] + "-" +
                pstring.Rand(2, 3) +
                `/`