Fix FutureWarning
This commit is contained in:
parent
70d809f179
commit
6f38472b17
2 changed files with 2 additions and 2 deletions
|
@ -321,7 +321,7 @@ def process_websocket(plex_id, status):
|
||||||
delete_kodi_playlist(playlist)
|
delete_kodi_playlist(playlist)
|
||||||
elif playlist:
|
elif playlist:
|
||||||
xml = PL.get_pms_playlist_metadata(plex_id)
|
xml = PL.get_pms_playlist_metadata(plex_id)
|
||||||
if not xml:
|
if xml is None:
|
||||||
LOG.error('Could not download playlist %s', plex_id)
|
LOG.error('Could not download playlist %s', plex_id)
|
||||||
return
|
return
|
||||||
api = API(xml[0])
|
api = API(xml[0])
|
||||||
|
|
|
@ -1218,7 +1218,7 @@ class API(object):
|
||||||
Pass in the collection id of e.g. the movie's metadata
|
Pass in the collection id of e.g. the movie's metadata
|
||||||
"""
|
"""
|
||||||
xml = PF.collections(self.library_section_id())
|
xml = PF.collections(self.library_section_id())
|
||||||
if not xml:
|
if xml is None:
|
||||||
return []
|
return []
|
||||||
return [(i.get('index'), i.get('ratingKey')) for i in xml]
|
return [(i.get('index'), i.get('ratingKey')) for i in xml]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue