Fix KeyError

This commit is contained in:
Croneter 2018-06-14 21:08:49 +02:00
parent c03b7c52c4
commit 3419e8869f

View file

@ -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' %