lrc tweaks

This commit is contained in:
2025-01-17 07:48:29 -05:00
parent 76182e3df1
commit 7899fc2d71
5 changed files with 66 additions and 13 deletions

View File

@@ -8,10 +8,10 @@ class LyricsResult:
artist: str
song: str
src: str
lyrics: str
lyrics: str|dict
confidence: int
time: float = 0.00
def dict(self):
def todict(self):
"""Return as dict"""
return {k: str(v) for k, v in asdict(self).items()}
return {k: type(v)(v) for k, v in asdict(self).items()}