From 678efedd30f874a39e0148a975bc85a277edaa94 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Thu, 18 Jun 2015 21:11:48 -0500 Subject: [PATCH] Change to theme music Apparently CleanName is not CleanFileName... Using Kodi's built in method instead. --- resources/lib/Entrypoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/Entrypoint.py b/resources/lib/Entrypoint.py index b18fe2c7..9940d285 100644 --- a/resources/lib/Entrypoint.py +++ b/resources/lib/Entrypoint.py @@ -174,12 +174,12 @@ def getThemeMedia(): for item in result[u'Items']: itemId = item[u'Id'] folderName = item[u'Name'] - folderName = utils.CleanName(folderName) + folderName = xbmc.makeLegalFilename(folderName) itemIds[itemId] = folderName # Get paths for itemId in itemIds: - nfo_path = xbmc.translatePath("special://profile/addon_data/plugin.video.emby/library/%s/" % itemIds[itemId]) + nfo_path = xbmc.translatePath("special://profile/addon_data/plugin.video.emby/library/%s" % itemIds[itemId]) # Create folders for each content if not xbmcvfs.exists(nfo_path): xbmcvfs.mkdir(nfo_path)