another attempt at Theme music

For illegal characters - following the same pattern as TV Tunes to make
sure we match 100%
This commit is contained in:
angelblue05 2015-06-19 03:10:41 -05:00
parent 678efedd30
commit ae07e1b4c6
2 changed files with 16 additions and 2 deletions

View file

@ -174,12 +174,12 @@ def getThemeMedia():
for item in result[u'Items']:
itemId = item[u'Id']
folderName = item[u'Name']
folderName = xbmc.makeLegalFilename(folderName)
folderName = utils.normalize_string(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)