From 2f754f9b4d6e8f81eb4d09d62e811911c273bbc2 Mon Sep 17 00:00:00 2001 From: itouakirai <85016486+itouakirai@users.noreply.github.com> Date: Mon, 10 Nov 2025 01:09:58 +0800 Subject: [PATCH] Change exception to return empty string for lyrics Return an empty string instead of raising an exception for unsynced lyrics. --- src/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils.py b/src/utils.py index 45f5818..ea6efe9 100644 --- a/src/utils.py +++ b/src/utils.py @@ -96,7 +96,8 @@ def ttml_convent_to_lrc(ttml: str) -> str: h, m, s, ms = 0, 0, 0, 0 lyric_time: str = lyric.get("begin") if not lyric_time: - raise NotTimeSyncedLyricsException + return "" + #raise NotTimeSyncedLyricsException if lyric_time.find('.') == -1: lyric_time += '.000' match lyric_time.count(":"):