From 017aa171559f2bbfde48df92865328d52be03dea Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Thu, 13 Nov 2025 08:52:58 +0100 Subject: [PATCH] =?UTF-8?q?feat(media):=20=E2=9C=A8=20add=20support=20for?= =?UTF-8?q?=20retrieving=20album=20and=20track=20artist=20IDs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Implemented logic to return `album_artist_id` for `Album` instances. * Added functionality to retrieve `track_artist_id` for `Track` instances. --- tidal_dl_ng/helper/path.py | 4 ++++ 1 file changed, 4 insertions(+) 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