2016-11-24, 16:13
Hi Marcel,
maybe a small bug:
In file \addons\script.module.skin.helper.artutils\lib\helpers\musicartwork.py
is:
Maybe it should be:
JB
maybe a small bug:
In file \addons\script.module.skin.helper.artutils\lib\helpers\musicartwork.py
is:
PHP Code:
def get_custom_album_path(self, custom_path, artist, album, disc):
'''try to locate the custom path for the album'''
artist_path = self.get_customfolder_path(custom_path, artist)
album_path = ""
if artist_path:
album_path = self.get_customfolder_path(artist_path, album)
if album_path and disc:
if "\\" in customfolder:
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 album_path
PHP Code:
def get_custom_album_path(self, custom_path, artist, album, disc):
'''try to locate the custom path for the album'''
artist_path = self.get_customfolder_path(custom_path, artist)
album_path = ""
if artist_path:
album_path = self.get_customfolder_path(artist_path, album)
if album_path and disc:
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(album_path, directory) + delim
return album_path