Skip to content

Commit

Permalink
{album_id} can be used for track naming. Fixes #123
Browse files Browse the repository at this point in the history
  • Loading branch information
exislow committed Jun 16, 2024
1 parent 9c5ef7a commit 1e9b24e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tidal_dl_ng/helper/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1e9b24e

Please sign in to comment.