Merge pull request #908 from croneter/fix-futurewarning
Fix FutureWarning
This commit is contained in:
commit
1bd29587e1
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