From 11df634c911922b66bbd45bb252cb48206f14647 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Thu, 28 Dec 2017 15:45:48 +0100 Subject: [PATCH] Fix TypeError --- resources/lib/playlist_func.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/playlist_func.py b/resources/lib/playlist_func.py index a77b4796..d3c2f6fb 100644 --- a/resources/lib/playlist_func.py +++ b/resources/lib/playlist_func.py @@ -210,7 +210,7 @@ def playlist_item_from_kodi(kodi_item): query = dict(parse_qsl(urlsplit(item.file).query)) item.plex_id = query.get('plex_id') item.plex_type = query.get('itemType') - if item.plex_id is None: + if item.plex_id is None and item.file is not None: item.uri = 'library://whatever/item/%s' % quote(item.file, safe='') else: # TO BE VERIFIED - PLEX DOESN'T LIKE PLAYLIST ADDS IN THIS MANNER