Fix FutureWarning
This commit is contained in:
parent
6e67429133
commit
f32a8c534f
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue