diff options
| author | exislow <exislow@users.noreply.github.com> | 2024-11-10 14:30:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-10 14:30:22 +0100 |
| commit | ec3e873ab6b88a4928b9ca7bf72f39031fede1ed (patch) | |
| tree | ac7cc02b8236ef449e67c7e0f4bf37a238ff5409 | |
| parent | 2ffdc90fde7fb86d48ad3f59e3d13591486220ae (diff) | |
| parent | 02de0c81085ebc627daf60c5d259fad1056fb0e2 (diff) | |
| download | tidal-dl-ng-ec3e873ab6b88a4928b9ca7bf72f39031fede1ed.tar.gz | |
Merge pull request #224 from exislow/200-feature-make-artist_name-be-the-main-artist-of-the-song
Fix: `{album_artist}` is now emitting only the album artist is only r…
| -rw-r--r-- | tidal_dl_ng/helper/path.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tidal_dl_ng/helper/path.py b/tidal_dl_ng/helper/path.py index 3d72cdf..cc8d5b6 100644 --- a/tidal_dl_ng/helper/path.py +++ b/tidal_dl_ng/helper/path.py @@ -77,7 +77,8 @@ def format_str_media(name: str, media: Track | Album | Playlist | UserPlaylist | elif hasattr(media, "artist"): result = media.artist.name case "album_artist": - result = name_builder_album_artist(media) + if isinstance(media, Album): + result = name_builder_album_artist(media) case "track_title": if isinstance(media, Track | Video): result = name_builder_title(media) |
