From 1e9b24e282d842fe0b041aa82ffe24bfc3cd36cf Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Sun, 16 Jun 2024 16:18:22 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20`{album=5Fid}`=20can=20be=20used=20?= =?UTF-8?q?for=20track=20naming.=20Fixes=20#123?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/helper/path.py | 2 ++ 1 file changed, 2 insertions(+) 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)