Fix UnicodeEncodeError, fixes #8
This commit is contained in:
parent
d557712896
commit
3855bb16ed
1 changed files with 5 additions and 1 deletions
|
@ -1237,7 +1237,11 @@ class API():
|
||||||
except:
|
except:
|
||||||
res = None
|
res = None
|
||||||
if res is not None:
|
if res is not None:
|
||||||
res = unquote(res).decode('utf-8')
|
try:
|
||||||
|
res = unquote(res).decode('utf-8')
|
||||||
|
except UnicodeEncodeError:
|
||||||
|
# Sometimes, unquote seems to return unicode, not string
|
||||||
|
res = unquote(res)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def getTVShowPath(self):
|
def getTVShowPath(self):
|
||||||
|
|
Loading…
Reference in a new issue