From e1dfc9ae0b86601e950387882533ab7ea6684f22 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Tue, 19 Mar 2024 14:44:16 +0100 Subject: ✨ Adds 'album_artist' to the folder names. Fixes #51 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/helper/path.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tidal_dl_ng/helper/path.py') diff --git a/tidal_dl_ng/helper/path.py b/tidal_dl_ng/helper/path.py index cda8663..2fc7d16 100644 --- a/tidal_dl_ng/helper/path.py +++ b/tidal_dl_ng/helper/path.py @@ -10,7 +10,7 @@ from tidalapi import Album, Mix, Playlist, Track, UserPlaylist, Video from tidal_dl_ng import __name_display__ from tidal_dl_ng.constants import FILENAME_SANITIZE_PLACEHOLDER, UNIQUIFY_THRESHOLD, AudioExtensions, MediaType -from tidal_dl_ng.helper.tidal import name_builder_artist, name_builder_title +from tidal_dl_ng.helper.tidal import name_builder_artist, name_builder_title, name_builder_album_artist def path_home() -> str: @@ -88,6 +88,8 @@ def format_str_media(name: str, media: Track | Album | Playlist | UserPlaylist | result = name_builder_artist(media) elif hasattr(media, "artist"): result = media.artist.name + elif name == "album_artist": + result = name_builder_album_artist(media) elif name == "track_title": if isinstance(media, Track | Video): result = name_builder_title(media) -- cgit v1.3.1