Skip to content

Commit

Permalink
✨ For albums you can now use album_num_volumes as a placeholder and…
Browse files Browse the repository at this point in the history
… for tracks `track_volume_num`. Fixes #90
  • Loading branch information
exislow committed Apr 20, 2024
1 parent 519e856 commit 9cfdbc1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tidal_dl_ng/helper/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ def format_str_media(name: str, media: Track | Album | Playlist | UserPlaylist |
case "album_explicit":
if isinstance(media, Album):
result = " (Explicit)" if media.explicit else ""
case "album_num_volumes":
if isinstance(media, Album):
result = media.num_volumes
case "track_volume_num":
if isinstance(media, Track | Video):
result = media.volume_num
except Exception as e:
# TODO: Implement better exception logging.
print(e)
Expand Down

0 comments on commit 9cfdbc1

Please sign in to comment.