summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-01-14 18:04:31 +0100
committerRobert Honz <exislow+github@gmail.com>2024-01-14 18:04:31 +0100
commit65c29cae291415cbbf0c857d2e108c673a4b2efc (patch)
tree3cd83021c471a52115b968cb2d47c1d013b05e98
parent949f843e1f26aa50f6ed764515e087c526e1bd6b (diff)
downloadtidal-dl-ng-65c29cae291415cbbf0c857d2e108c673a4b2efc.tar.gz
🛠️ `lyrics_save` config value is not respected.
-rw-r--r--tidal_dl_ng/download.py12
-rw-r--r--tidal_dl_ng/model/cfg.py3
2 files changed, 10 insertions, 5 deletions
diff --git a/tidal_dl_ng/download.py b/tidal_dl_ng/download.py
index 6ee17d6..beaa540 100644
--- a/tidal_dl_ng/download.py
+++ b/tidal_dl_ng/download.py
@@ -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 = ""
- try:
- lyrics: str = track.lyrics().subtitles if hasattr(track, "lyrics") else ""
- except HTTPError:
- lyrics: str = ""
+ if settings.data.lyrics_save:
+ # Try to retrieve lyrics.
+ try:
+ lyrics: str = track.lyrics().subtitles if hasattr(track, "lyrics") else ""
+ except HTTPError:
+ # 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(
diff --git a/tidal_dl_ng/model/cfg.py b/tidal_dl_ng/model/cfg.py
index 1083132..d58b3e2 100644
--- a/tidal_dl_ng/model/cfg.py
+++ b/tidal_dl_ng/model/cfg.py
@@ -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