From 11cf78de361caeeb096b8ec829d81d9e8b244269 Mon Sep 17 00:00:00 2001 From: marcelveldt Date: Mon, 18 Jan 2016 20:56:10 +0100 Subject: [PATCH] fix unicode error in urlencode --- resources/lib/artwork.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lib/artwork.py b/resources/lib/artwork.py index 6d42a45f..25860bb4 100644 --- a/resources/lib/artwork.py +++ b/resources/lib/artwork.py @@ -55,10 +55,11 @@ class Artwork(): return text def single_urlencode(self, text): - text = urllib.urlencode({'blahblahblah':text}) + + text = urllib.urlencode({'blahblahblah':text.encode("utf-8")}) #urlencode needs a utf- string text = text[13:] - return text + return text.decode("utf-8") #return the result again as unicode def setKodiWebServerDetails(self): # Get the Kodi webserver details - used to set the texture cache