From a032bb13b4028bce1d6b3c35b8c0ec1e310fe1f0 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Tue, 31 Mar 2020 14:37:45 +0200 Subject: [PATCH] Forgot to import changeCase --- deemix/app/downloader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deemix/app/downloader.py b/deemix/app/downloader.py index 3819fc7..4eda19b 100644 --- a/deemix/app/downloader.py +++ b/deemix/app/downloader.py @@ -2,6 +2,7 @@ from deemix.api.deezer import APIError, USER_AGENT_HEADER from deemix.utils.taggers import tagID3, tagFLAC from deemix.utils.pathtemplates import generateFilename, generateFilepath, settingsRegexAlbum, settingsRegexArtist +from deemix.utils.misc import changeCase import os.path from os import makedirs, remove from requests import get @@ -423,7 +424,7 @@ def downloadTrackObj(dz, trackAPI, settings, overwriteBitrate=False, extraTrack= # Change Title and Artists casing if needed if settings['titleCasing'] != "nothing": - tags['title'] = changeCase(tags['title'], settings['titleCasing']) + track['title'] = changeCase(track['title'], settings['titleCasing']) if settings['artistCasing'] != "nothing": track['artistsString'] = changeCase(track['artistsString'], settings['artistCasing']) for i, artist in enumerate(track['artists']):