mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
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']:
|
||||
itemId = item[u'Id']
|
||||
folderName = item[u'Name']
|
||||
folderName = utils.CleanName(folderName)
|
||||
itemIds[itemId] = folderName
|
||||
|
||||
# Get paths
|
||||
|
@ -189,7 +190,7 @@ def getThemeMedia():
|
|||
playurl = playUtils.directPlay(theme)
|
||||
else:
|
||||
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(
|
||||
'<tvtunes>%s</tvtunes>' % pathstowrite
|
||||
|
|
Loading…
Reference in a new issue