Fix for filename
using utils cleanname and encoding for special characters
This commit is contained in:
parent
079adfb619
commit
7b041d8795
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue