summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/helper/path.py
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2025-11-13 08:52:58 +0100
committerRobert Honz <exislow+github@gmail.com>2025-11-13 08:52:58 +0100
commit017aa171559f2bbfde48df92865328d52be03dea (patch)
tree1b6ced0dd479828121c24e05385f89474cf920a3 /tidal_dl_ng/helper/path.py
parentb9ede6603e14af3b74199d47530a244567ec21b3 (diff)
downloadtidal-dl-ng-017aa171559f2bbfde48df92865328d52be03dea.tar.gz
feat(media): ✨ add support for retrieving album and track artist IDs
* Implemented logic to return `album_artist_id` for `Album` instances. * Added functionality to retrieve `track_artist_id` for `Track` instances.
Diffstat (limited to 'tidal_dl_ng/helper/path.py')
-rw-r--r--tidal_dl_ng/helper/path.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tidal_dl_ng/helper/path.py b/tidal_dl_ng/helper/path.py
index 6ed8020..9e8cccb 100644
--- a/tidal_dl_ng/helper/path.py
+++ b/tidal_dl_ng/helper/path.py
@@ -364,6 +364,10 @@ def _format_ids(
# Handle ISRC
elif name == "isrc" and isinstance(media, Track):
return media.isrc
+ elif name == "album_artist_id" and isinstance(media, Album):
+ return str(media.artist.id)
+ elif name == "track_artist_id" and isinstance(media, Track):
+ return str(media.album.artist.id)
return None