Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Nov 24, 2016
1 parent ec8a88f commit 6ec5b1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/helpers/musicartwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down Expand Up @@ -427,15 +427,15 @@ 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 = "/"
dirs = xbmcvfs.listdir(album_path)[0]
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):
Expand Down

0 comments on commit 6ec5b1d

Please sign in to comment.