summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tidal_dl_ng/helper/path.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tidal_dl_ng/helper/path.py b/tidal_dl_ng/helper/path.py
index 23316d6..bc1fb6d 100644
--- a/tidal_dl_ng/helper/path.py
+++ b/tidal_dl_ng/helper/path.py
@@ -105,6 +105,8 @@ def format_str_media(name: str, media: Track | Album | Playlist | UserPlaylist |
case "album_id":
if isinstance(media, Album):
result = str(media.id)
+ elif isinstance(media, Track):
+ result = str(media.album.id)
case "track_duration_seconds":
if isinstance(media, Track | Video):
result = str(media.duration)