From a6d0d901ab6de670016981435d829785c8a57540 Mon Sep 17 00:00:00 2001 From: qydysky Date: Wed, 26 Feb 2025 08:59:31 +0800 Subject: [PATCH] =?utf8?q?Improve=20=E6=80=BB=E6=98=AF=E7=94=9F=E6=88=90as?= =?utf8?q?s=20(#178)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/F/ass/ass.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Reply/F/ass/ass.go b/Reply/F/ass/ass.go index 74deb7a..70ab0f1 100644 --- a/Reply/F/ass/ass.go +++ b/Reply/F/ass/ass.go @@ -104,12 +104,8 @@ func (t *Ass) ToAss(savePath string) { var lsd = make([]float64, lsSize) var lso = make([]float64, lsSize) - var write bool + _, _ = f.Write([]byte(t.header), true) for line := range loadCsv(savePath) { - if !write { - _, _ = f.Write([]byte(t.header), true) - write = true - } danmul := utf8.RuneCountInString(line.Text) danmuSec := (float64(t.showSec*t.fontsize*danmul) / float64(t.fontsize*danmul+playResX)) -- 2.39.2