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')
|
item.plex_type = query.get('itemType')
|
||||||
if item.plex_id is None and item.file is not None:
|
if item.plex_id is None and item.file is not None:
|
||||||
item.uri = ('library://whatever/item/%s'
|
item.uri = ('library://whatever/item/%s'
|
||||||
% urllib.quote(item.file, safe=''))
|
% urllib.quote(try_encode(item.file), safe=''))
|
||||||
else:
|
else:
|
||||||
# TO BE VERIFIED - PLEX DOESN'T LIKE PLAYLIST ADDS IN THIS MANNER
|
# TO BE VERIFIED - PLEX DOESN'T LIKE PLAYLIST ADDS IN THIS MANNER
|
||||||
item.uri = ('library://%s/item/library%%2Fmetadata%%2F%s' %
|
item.uri = ('library://%s/item/library%%2Fmetadata%%2F%s' %
|
||||||
|
|
Loading…
Add table
Reference in a new issue