Fix KeyError
This commit is contained in:
parent
c03b7c52c4
commit
3419e8869f
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ def playlist_item_from_kodi(kodi_item):
|
|||
item.plex_type = query.get('itemType')
|
||||
if item.plex_id is None and item.file is not None:
|
||||
item.uri = ('library://whatever/item/%s'
|
||||
% urllib.quote(item.file, safe=''))
|
||||
% urllib.quote(try_encode(item.file), safe=''))
|
||||
else:
|
||||
# TO BE VERIFIED - PLEX DOESN'T LIKE PLAYLIST ADDS IN THIS MANNER
|
||||
item.uri = ('library://%s/item/library%%2Fmetadata%%2F%s' %
|
||||
|
|
Loading…
Reference in a new issue