From 7b041d879536723322cd22db18a8f52084089bfe Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Wed, 17 Jun 2015 01:32:59 -0500 Subject: [PATCH] Fix for filename using utils cleanname and encoding for special characters --- resources/lib/Entrypoint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/Entrypoint.py b/resources/lib/Entrypoint.py index d64bd28d..f04cae12 100644 --- a/resources/lib/Entrypoint.py +++ b/resources/lib/Entrypoint.py @@ -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 += ('%s' % playurl) + pathstowrite += ('%s' % playurl.encode('utf-8')) nfo_file.write( '%s' % pathstowrite