Fix for filename

using utils cleanname and encoding for special characters
This commit is contained in:
angelblue05 2015-06-17 01:32:59 -05:00
parent 079adfb619
commit 7b041d8795

View file

@ -166,6 +166,7 @@ def getThemeMedia():
for item in result[u'Items']: for item in result[u'Items']:
itemId = item[u'Id'] itemId = item[u'Id']
folderName = item[u'Name'] folderName = item[u'Name']
folderName = utils.CleanName(folderName)
itemIds[itemId] = folderName itemIds[itemId] = folderName
# Get paths # Get paths
@ -189,7 +190,7 @@ def getThemeMedia():
playurl = playUtils.directPlay(theme) playurl = playUtils.directPlay(theme)
else: else:
playurl = playUtils.directStream(result, server, theme[u'Id'], "Audio") playurl = playUtils.directStream(result, server, theme[u'Id'], "Audio")
pathstowrite += ('<file>%s</file>' % playurl) pathstowrite += ('<file>%s</file>' % playurl.encode('utf-8'))
nfo_file.write( nfo_file.write(
'<tvtunes>%s</tvtunes>' % pathstowrite '<tvtunes>%s</tvtunes>' % pathstowrite