fixup! fix: adapt lrc two digit ms standard

This commit is contained in:
WorldObservationLog 2024-04-25 22:57:59 +08:00
parent 4f272b5ab7
commit 61311a20cd
2 changed files with 2 additions and 2 deletions

View File

@ -1291,7 +1291,7 @@ func conventTTMLToLRC(ttml string) (string, error) {
} }
m += h * 60 m += h * 60
ms = ms / 10 ms = ms / 10
lrcLines = append(lrcLines, fmt.Sprintf("[%02d:%02d.%03d]%s", m, s, ms, text)) lrcLines = append(lrcLines, fmt.Sprintf("[%02d:%02d.%02d]%s", m, s, ms, text))
} }
} }
return strings.Join(lrcLines, "\n"), nil return strings.Join(lrcLines, "\n"), nil

View File

@ -1291,7 +1291,7 @@ func conventTTMLToLRC(ttml string) (string, error) {
} }
m += h * 60 m += h * 60
ms = ms / 10 ms = ms / 10
lrcLines = append(lrcLines, fmt.Sprintf("[%02d:%02d.%03d]%s", m, s, ms, text)) lrcLines = append(lrcLines, fmt.Sprintf("[%02d:%02d.%02d]%s", m, s, ms, text))
} }
} }
return strings.Join(lrcLines, "\n"), nil return strings.Join(lrcLines, "\n"), nil