unicode fixes

fix for users who have redirected kodi data folders (replace open with xbmcvfs.file)
This commit is contained in:
marcelveldt 2016-01-18 10:00:32 +01:00
parent ca0906aaaf
commit 2bd1d139c1
4 changed files with 21 additions and 20 deletions

View file

@ -185,7 +185,7 @@ class Artwork():
for dir in allDirs:
allDirs, allFiles = xbmcvfs.listdir(path+dir)
for file in allFiles:
xbmcvfs.delete(os.path.join(path+dir,file))
xbmcvfs.delete(os.path.join(path+dir.decode('utf-8'),file.decode('utf-8')))
# remove all existing data from texture DB
textureconnection = utils.kodiSQL('texture')