🛠️ lyrics_save config value is not respected.

This commit is contained in:
Robert Honz
2024-01-14 18:04:31 +01:00
parent 949f843e1f
commit 65c29cae29
2 changed files with 10 additions and 5 deletions
+5 -1
View File
@@ -242,11 +242,15 @@ class Download:
)
copy_right: str = track.copyright if hasattr(track, "copyright") else ""
isrc: str = track.isrc if hasattr(track, "isrc") else ""
lyrics: str = ""
if settings.data.lyrics_save:
# Try to retrieve lyrics.
try:
lyrics: str = track.lyrics().subtitles if hasattr(track, "lyrics") else ""
except HTTPError:
lyrics: str = ""
# TODO: Implement proper logging.
print(f"Could not retrieve lyrics for `{name_builder_item(track)}`.")
# TODO: Check if it is possible to pass "None" values.
m: Metadata = Metadata(
+2 -1
View File
@@ -10,7 +10,8 @@ from tidal_dl_ng.constants import CoverDimensions, QualityVideo, SkipExisting
@dataclass
class Settings:
skip_existing: SkipExisting = SkipExisting.Disabled
album_cover_save: bool = True
# TODO: Implement cover download to a separate file.
#album_cover_save: bool = True
lyrics_save: bool = False
# TODO: Implement API KEY selection.
api_key_index: bool = 0