diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-06-16 16:18:22 +0200 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-06-16 16:18:22 +0200 |
| commit | 1e9b24e282d842fe0b041aa82ffe24bfc3cd36cf (patch) | |
| tree | 54792073344c472e48c58ebe8efb3d7bdb634433 | |
| parent | 9c5ef7afe4fccd1221b594265d01aac8e2857b4a (diff) | |
| download | tidal-dl-ng-1e9b24e282d842fe0b041aa82ffe24bfc3cd36cf.tar.gz | |
✨ `{album_id}` can be used for track naming. Fixes #123
| -rw-r--r-- | tidal_dl_ng/helper/path.py | 2 |
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) |
