From 375501d681d037d471c66aa7cf4e99be9c0a8233 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Mon, 30 Mar 2020 12:09:58 +0200 Subject: [PATCH] raplaced artistString with mainArtistsString for %artists% variable --- deemix/utils/pathtemplates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deemix/utils/pathtemplates.py b/deemix/utils/pathtemplates.py index b472a5b..f33a468 100644 --- a/deemix/utils/pathtemplates.py +++ b/deemix/utils/pathtemplates.py @@ -97,7 +97,7 @@ def generateFilepath(track, trackAPI, settings): def settingsRegex(filename, track, settings, playlist=None): filename = filename.replace("%title%", fixName(track['title'], settings['illegalCharacterReplacer'])) filename = filename.replace("%artist%", fixName(track['mainArtist']['name'], settings['illegalCharacterReplacer'])) - filename = filename.replace("%artists%", fixName(track['artistString'], settings['illegalCharacterReplacer'])) + filename = filename.replace("%artists%", fixName(track['mainArtistsString'], settings['illegalCharacterReplacer'])) filename = filename.replace("%album%", fixName(track['album']['title'], settings['illegalCharacterReplacer'])) filename = filename.replace("%albumartist%", fixName(track['album']['mainArtist']['name'], settings['illegalCharacterReplacer'])) filename = filename.replace("%tracknumber%", pad(track['trackNumber'], track['album']['trackTotal'] if int(settings['paddingSize']) == 0 else 10 ** (int(settings['paddingSize'])-1), settings['padTracks']))