Fix UnicodeEncodeError
This commit is contained in:
parent
2013b498d6
commit
90f445cc75
1 changed files with 4 additions and 4 deletions
|
@ -152,9 +152,9 @@ class API(object):
|
||||||
|
|
||||||
def directory_path(self, section_id=None, plex_type=None, old_key=None,
|
def directory_path(self, section_id=None, plex_type=None, old_key=None,
|
||||||
synched=True):
|
synched=True):
|
||||||
key = self.item.get('fastKey')
|
key = cast(unicode, self.item.get('fastKey'))
|
||||||
if not key:
|
if not key:
|
||||||
key = self.item.get('key')
|
key = cast(unicode, self.item.get('key'))
|
||||||
if old_key:
|
if old_key:
|
||||||
key = '%s/%s' % (old_key, key)
|
key = '%s/%s' % (old_key, key)
|
||||||
elif not key.startswith('/'):
|
elif not key.startswith('/'):
|
||||||
|
@ -169,10 +169,10 @@ class API(object):
|
||||||
params['synched'] = 'false'
|
params['synched'] = 'false'
|
||||||
if self.item.get('prompt'):
|
if self.item.get('prompt'):
|
||||||
# User input needed, e.g. search for a movie or episode
|
# User input needed, e.g. search for a movie or episode
|
||||||
params['prompt'] = self.item.get('prompt')
|
params['prompt'] = cast(unicode, self.item.get('prompt'))
|
||||||
if section_id:
|
if section_id:
|
||||||
params['id'] = section_id
|
params['id'] = section_id
|
||||||
return 'plugin://%s/?%s' % (v.ADDON_ID, urlencode(params))
|
return utils.extend_url('plugin://%s/' % v.ADDON_ID, params)
|
||||||
|
|
||||||
def path_and_plex_id(self):
|
def path_and_plex_id(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue