fix unicode error in urlencode
This commit is contained in:
parent
dbc91330ce
commit
11cf78de36
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue