summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/helper
diff options
context:
space:
mode:
authorexislow <exislow@users.noreply.github.com>2024-11-15 09:57:37 +0100
committerGitHub <noreply@github.com>2024-11-15 09:57:37 +0100
commit841ffaee4d190f7b98f38e259d83e601b94f005b (patch)
tree8e8b8784749e44641d3030473539aa8a65d9ce74 /tidal_dl_ng/helper
parentf28d07b651a0d69229bfb6f1a1bcd3525ed99933 (diff)
parent037e6f14a20dc32055755382592e47bde94f073f (diff)
downloadtidal-dl-ng-841ffaee4d190f7b98f38e259d83e601b94f005b.tar.gz
Merge pull request #235 from exislow/201-feature-add-downloaded-songname-to-stdout
✨ Finished items will be written to log output. Minor refactoring.
Diffstat (limited to 'tidal_dl_ng/helper')
-rw-r--r--tidal_dl_ng/helper/tidal.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tidal_dl_ng/helper/tidal.py b/tidal_dl_ng/helper/tidal.py
index ebea4cd..e568cc6 100644
--- a/tidal_dl_ng/helper/tidal.py
+++ b/tidal_dl_ng/helper/tidal.py
@@ -25,8 +25,10 @@ def name_builder_album_artist(media: Track | Album) -> str:
return ", ".join(artists_tmp)
-def name_builder_title(media: Track | Video) -> str:
- result: str = media.full_name if hasattr(media, "full_name") else media.name
+def name_builder_title(media: Track | Video | Mix | Playlist | Album | Video) -> str:
+ result: str = (
+ media.title if isinstance(media, Mix) else media.full_name if hasattr(media, "full_name") else media.name
+ )
return result