From 61311a20cd04dae6d051a1deddc57960e94602b6 Mon Sep 17 00:00:00 2001 From: WorldObservationLog Date: Thu, 25 Apr 2024 22:57:59 +0800 Subject: [PATCH] fixup! fix: adapt lrc two digit ms standard --- main_atmos.go | 2 +- main_select.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main_atmos.go b/main_atmos.go index c98cdca..c81813c 100644 --- a/main_atmos.go +++ b/main_atmos.go @@ -1291,7 +1291,7 @@ func conventTTMLToLRC(ttml string) (string, error) { } m += h * 60 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 diff --git a/main_select.go b/main_select.go index 06153c9..5ad954f 100644 --- a/main_select.go +++ b/main_select.go @@ -1291,7 +1291,7 @@ func conventTTMLToLRC(ttml string) (string, error) { } m += h * 60 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