Merge pull request #222 from exislow/171-bug-contributing-artists-not-used-for-album-download

Fix: Replace `{artist_name}` only on Track / Video basis. Fixes #171
This commit is contained in:
exislow
2024-11-10 13:56:55 +01:00
committed by GitHub
+1
View File
@@ -71,6 +71,7 @@ def format_str_media(name: str, media: Track | Album | Playlist | UserPlaylist |
try: try:
match name: match name:
case "artist_name": case "artist_name":
if isinstance(media, Track | Video):
if hasattr(media, "artists"): if hasattr(media, "artists"):
result = name_builder_artist(media) result = name_builder_artist(media)
elif hasattr(media, "artist"): elif hasattr(media, "artist"):