summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/helper
diff options
context:
space:
mode:
authorexislow <exislow@users.noreply.github.com>2025-10-17 12:10:42 +0200
committerGitHub <noreply@github.com>2025-10-17 12:10:42 +0200
commitfeebdda62f0b64a94dfff63334ca9ee7984df453 (patch)
tree4f75256191e0671722437199940230c24f50ba32 /tidal_dl_ng/helper
parent8ebb84bf2ed2c8ac277dd83cd1d645dfb86ecef3 (diff)
parent5da1855028b4519fd284fa55ae7b38390cbde62f (diff)
downloadtidal-dl-ng-feebdda62f0b64a94dfff63334ca9ee7984df453.tar.gz
Merge pull request #585 from exislow:568-delimiter-to-semicolon-pls-add-option-to-change-to-whatever-the-user-wants
feat(metadata): ✨ add customizable metadata delimiters for artists
Diffstat (limited to 'tidal_dl_ng/helper')
-rw-r--r--tidal_dl_ng/helper/tidal.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tidal_dl_ng/helper/tidal.py b/tidal_dl_ng/helper/tidal.py
index 93999e0..22d8f00 100644
--- a/tidal_dl_ng/helper/tidal.py
+++ b/tidal_dl_ng/helper/tidal.py
@@ -10,11 +10,11 @@ from tidal_dl_ng.constants import FAVORITES, MediaType
from tidal_dl_ng.helper.exceptions import MediaUnknown
-def name_builder_artist(media: Track | Video | Album) -> str:
- return "; ".join(artist.name for artist in media.artists)
+def name_builder_artist(media: Track | Video | Album, delimiter: str = "; ") -> str:
+ return delimiter.join(artist.name for artist in media.artists)
-def name_builder_album_artist(media: Track | Album, first_only: bool = False) -> str:
+def name_builder_album_artist(media: Track | Album, first_only: bool = False, delimiter: str = "; ") -> str:
artists_tmp: [str] = []
artists: [Artist] = media.album.artists if isinstance(media, Track) else media.artists
@@ -25,7 +25,7 @@ def name_builder_album_artist(media: Track | Album, first_only: bool = False) ->
if first_only:
break
- return "; ".join(artists_tmp)
+ return delimiter.join(artists_tmp)
def name_builder_title(media: Track | Video | Mix | Playlist | Album | Video) -> str: