Fix FutureWarning

This commit is contained in:
croneter 2019-06-25 18:12:46 +02:00
parent 6e67429133
commit f32a8c534f
2 changed files with 2 additions and 2 deletions

View file

@ -483,7 +483,7 @@ def extras(plex_id):
xbmcplugin.endOfDirectory(int(sys.argv[1]))
return
extras = API(xml[0]).extras()
if not extras:
if extras is None:
return
for child in xml:
xml.remove(child)

View file

@ -561,7 +561,7 @@ class Base(object):
Returns None if no extras are found
"""
extras = self.xml.find('Extras')
if not extras:
if extras is None:
return
return (x for x in extras)