diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-11-15 09:53:21 +0100 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-11-15 09:57:01 +0100 |
| commit | 037e6f14a20dc32055755382592e47bde94f073f (patch) | |
| tree | 8e8b8784749e44641d3030473539aa8a65d9ce74 /tidal_dl_ng/helper | |
| parent | f28d07b651a0d69229bfb6f1a1bcd3525ed99933 (diff) | |
| download | tidal-dl-ng-037e6f14a20dc32055755382592e47bde94f073f.tar.gz | |
✨ 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.py | 6 |
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 |
