summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/helper/path.py
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-04-20 14:54:03 +0200
committerRobert Honz <exislow+github@gmail.com>2024-04-20 14:54:03 +0200
commit81e04f4529487566429c1b5a96a0dcff831c7b01 (patch)
tree7112341109ef51c1835d90fae51c8fa48def884a /tidal_dl_ng/helper/path.py
parent9cfdbc1d9f5490d36b4d039568974c70f7bb8a10 (diff)
downloadtidal-dl-ng-81e04f4529487566429c1b5a96a0dcff831c7b01.tar.gz
🛠️ Naming placeholder to str conversion fix.
Diffstat (limited to 'tidal_dl_ng/helper/path.py')
-rw-r--r--tidal_dl_ng/helper/path.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tidal_dl_ng/helper/path.py b/tidal_dl_ng/helper/path.py
index 7ef8a07..1b9fe96 100644
--- a/tidal_dl_ng/helper/path.py
+++ b/tidal_dl_ng/helper/path.py
@@ -97,13 +97,13 @@ def format_str_media(name: str, media: Track | Album | Playlist | UserPlaylist |
result = str(media.album.num_tracks if hasattr(media, "album") else 1)
case "track_id":
if isinstance(media, Track | Video):
- result = media.id
+ result = str(media.id)
case "playlist_id":
if isinstance(media, Playlist):
- result = media.id
+ result = str(media.id)
case "album_id":
if isinstance(media, Album):
- result = media.id
+ result = str(media.id)
case "track_duration_seconds":
if isinstance(media, Track | Video):
result = str(media.duration)
@@ -144,10 +144,10 @@ def format_str_media(name: str, media: Track | Album | Playlist | UserPlaylist |
result = " (Explicit)" if media.explicit else ""
case "album_num_volumes":
if isinstance(media, Album):
- result = media.num_volumes
+ result = str(media.num_volumes)
case "track_volume_num":
if isinstance(media, Track | Video):
- result = media.volume_num
+ result = str(media.volume_num)
except Exception as e:
# TODO: Implement better exception logging.
print(e)