mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-13 21:56:11 +00:00
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
|
return text
|
||||||
|
|
||||||
def single_urlencode(self, 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:]
|
text = text[13:]
|
||||||
|
|
||||||
return text
|
return text.decode("utf-8") #return the result again as unicode
|
||||||
|
|
||||||
def setKodiWebServerDetails(self):
|
def setKodiWebServerDetails(self):
|
||||||
# Get the Kodi webserver details - used to set the texture cache
|
# Get the Kodi webserver details - used to set the texture cache
|
||||||
|
|
Loading…
Reference in a new issue