From db5c5eac9706eb5ab8d11c05f4346d64653ba83c Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Sun, 29 Jun 2025 21:42:39 +0200 Subject: ✨ will only return the first artists. will return all album artists. Fixes #439 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/helper/tidal.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tidal_dl_ng/helper/tidal.py') diff --git a/tidal_dl_ng/helper/tidal.py b/tidal_dl_ng/helper/tidal.py index c2c18d8..3896fa6 100644 --- a/tidal_dl_ng/helper/tidal.py +++ b/tidal_dl_ng/helper/tidal.py @@ -14,7 +14,7 @@ def name_builder_artist(media: Track | Video | Album) -> str: return ", ".join(artist.name for artist in media.artists) -def name_builder_album_artist(media: Track | Album) -> str: +def name_builder_album_artist(media: Track | Album, first_only: bool = False) -> str: artists_tmp: [str] = [] artists: [Artist] = media.album.artists if isinstance(media, Track) else media.artists @@ -22,6 +22,9 @@ def name_builder_album_artist(media: Track | Album) -> str: if Role.main in artist.roles: artists_tmp.append(artist.name) + if first_only: + break + return ", ".join(artists_tmp) -- cgit v1.3.1