From: qydysky Date: Sun, 9 Apr 2023 02:32:11 +0000 (+0800) Subject: Fix 保存路径去除/ X-Git-Tag: v0.8.0~4 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=da727c2555efd1564307375923c26863ab089986;p=bili_danmu%2F.git Fix 保存路径去除/ --- diff --git a/Reply/stream.go b/Reply/stream.go index 8172e93..e695e6b 100644 --- a/Reply/stream.go +++ b/Reply/stream.go @@ -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) + `/`