From 6ec5b1d0c62f450dd25d62bd84acee3e49197f00 Mon Sep 17 00:00:00 2001 From: marcelveldt Date: Thu, 24 Nov 2016 20:19:18 +0100 Subject: [PATCH] fix typos --- lib/helpers/musicartwork.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/helpers/musicartwork.py b/lib/helpers/musicartwork.py index d8c49d8..e9d718c 100644 --- a/lib/helpers/musicartwork.py +++ b/lib/helpers/musicartwork.py @@ -192,7 +192,7 @@ def get_artist_metadata(self, artist, album, track, ignore_cache=False): # download artwork to music folder if local_path and self.artutils.addon.getSetting("music_art_download") == "true": - details["art"] = self.download_artwork(local_path, details["art"]) + details["art"] = download_artwork(local_path, details["art"]) # download artwork to custom folder if local_path_custom and self.artutils.addon.getSetting("music_art_download_custom") == "true": details["art"] = download_artwork(local_path_custom, details["art"]) @@ -427,7 +427,7 @@ def get_custom_album_path(self, custom_path, artist, album, disc): if artist_path: album_path = self.get_customfolder_path(artist_path, album) if album_path and disc: - if "\\" in customfolder: + if "\\" in album_path: delim = "\\" else: delim = "/" @@ -435,7 +435,7 @@ def get_custom_album_path(self, custom_path, artist, album, disc): for directory in dirs: directory = directory.decode("utf-8") if disc in directory: - return os.path.join(customfolder, directory) + delim + return os.path.join(album_path, directory) + delim return album_path def get_customfolder_path(self, customfolder, foldername):