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]))
|
xbmcplugin.endOfDirectory(int(sys.argv[1]))
|
||||||
return
|
return
|
||||||
extras = API(xml[0]).extras()
|
extras = API(xml[0]).extras()
|
||||||
if not extras:
|
if extras is None:
|
||||||
return
|
return
|
||||||
for child in xml:
|
for child in xml:
|
||||||
xml.remove(child)
|
xml.remove(child)
|
||||||
|
|
|
@ -561,7 +561,7 @@ class Base(object):
|
||||||
Returns None if no extras are found
|
Returns None if no extras are found
|
||||||
"""
|
"""
|
||||||
extras = self.xml.find('Extras')
|
extras = self.xml.find('Extras')
|
||||||
if not extras:
|
if extras is None:
|
||||||
return
|
return
|
||||||
return (x for x in extras)
|
return (x for x in extras)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue