From dd2ddce21875dbd0e375be37550df67fd6bc8c19 Mon Sep 17 00:00:00 2001 From: Joftal <42807405+Joftal@users.noreply.github.com> Date: Thu, 7 May 2026 11:25:31 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BC=98=E5=8C=96=E5=BC=B9?= =?UTF-8?q?=E5=B9=95=E5=86=99=E5=85=A5=EF=BC=8C=E5=8E=BB=E6=8E=89sync?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/recorders/danmaku/ass.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/recorders/danmaku/ass.go b/src/recorders/danmaku/ass.go index 9fb8bd0..f80bf83 100644 --- a/src/recorders/danmaku/ass.go +++ b/src/recorders/danmaku/ass.go @@ -254,7 +254,6 @@ func (w *AssWriter) AddDanmaku(recvAt time.Time, username, text string, color in line := fmt.Sprintf("Dialogue: 0,%s,%s,Danmaku,,0,0,%d,Banner;%d;0;30,{\\c%s}%s\n", formatTime(startCS), formatTime(endCS), marginV, w.bannerSpeed, assColor, escapeText(fullText)) w.file.WriteString(line) - w.file.Sync() } // AddGift appends a gift message as a smaller scrolling line. @@ -287,7 +286,6 @@ func (w *AssWriter) AddGift(recvAt time.Time, username, giftName string, num int line := fmt.Sprintf("Dialogue: 0,%s,%s,Gift,,0,0,%d,Banner;%d;0;30,%s\n", formatTime(startCS), formatTime(endCS), marginV, w.bannerSpeed, escapeText(fullText)) w.file.WriteString(line) - w.file.Sync() } // positionToAlignment maps position string to ASS \an alignment value and margin. @@ -325,7 +323,6 @@ func (w *AssWriter) AddGuard(recvAt time.Time, username, giftName string) { line := fmt.Sprintf("Dialogue: 1,%s,%s,Guard,,0,0,%d,,{\\an%d}{\\q0}%s\n", formatTime(startCS), formatTime(endCS), marginV, alignment, escapeText(fullText)) w.file.WriteString(line) - w.file.Sync() } // AddSuperChat appends a Super Chat message. @@ -349,7 +346,6 @@ func (w *AssWriter) AddSuperChat(recvAt time.Time, username, text string, price line := fmt.Sprintf("Dialogue: 1,%s,%s,%s,,0,0,%d,,{\\an%d}{\\q0}%s\n", formatTime(startCS), formatTime(endCS), styleName, marginV, alignment, escapeText(fullText)) w.file.WriteString(line) - w.file.Sync() } func (w *AssWriter) assignLane(startCS, endCS int64) int {