mirror of
https://github.com/zhaarey/AppleMusicDecrypt.git
synced 2025-10-23 15:11:06 +00:00
fix: in old lyrics some lines would be missing ms digits like '06:06'. And in this case we would manually add dummy one at last.
This commit is contained in:
@@ -84,6 +84,8 @@ def ttml_convent_to_lrc(ttml: str) -> str:
|
||||
lyric_time: str = lyric.get("begin")
|
||||
if not lyric_time:
|
||||
raise NotTimeSyncedLyricsException
|
||||
if lyric_time.find('.') == -1:
|
||||
lyric_time += '.000'
|
||||
match lyric_time.count(":"):
|
||||
case 0:
|
||||
split_time = lyric_time.split(".")
|
||||
|
||||
Reference in New Issue
Block a user