diff --git a/resources/lib/playlists.py b/resources/lib/playlists.py index 0cf648c7..5be1f82a 100644 --- a/resources/lib/playlists.py +++ b/resources/lib/playlists.py @@ -321,7 +321,7 @@ def process_websocket(plex_id, status): delete_kodi_playlist(playlist) elif playlist: xml = PL.get_pms_playlist_metadata(plex_id) - if not xml: + if xml is None: LOG.error('Could not download playlist %s', plex_id) return api = API(xml[0]) diff --git a/resources/lib/plex_api.py b/resources/lib/plex_api.py index fc2202fc..7a67e220 100644 --- a/resources/lib/plex_api.py +++ b/resources/lib/plex_api.py @@ -1218,7 +1218,7 @@ class API(object): Pass in the collection id of e.g. the movie's metadata """ xml = PF.collections(self.library_section_id()) - if not xml: + if xml is None: return [] return [(i.get('index'), i.get('ratingKey')) for i in xml]