Skip to content

Commit 28a6fe5

Browse files
authored
Merge pull request #647 from exislow:612-adding-of-artist_id
feat(media): ✨ add support for retrieving album and track artist IDs
2 parents b9ede66 + 017aa17 commit 28a6fe5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tidal_dl_ng/helper/path.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,10 @@ def _format_ids(
364364
# Handle ISRC
365365
elif name == "isrc" and isinstance(media, Track):
366366
return media.isrc
367+
elif name == "album_artist_id" and isinstance(media, Album):
368+
return str(media.artist.id)
369+
elif name == "track_artist_id" and isinstance(media, Track):
370+
return str(media.album.artist.id)
367371
return None
368372

369373

0 commit comments

Comments
 (0)