fix python 2, bug, dunno why the last didnt work.

This commit is contained in:
Hellowlol 2017-10-25 18:22:10 +02:00
parent 419437e58b
commit 0e4d53a74c

View file

@ -503,7 +503,7 @@ class MyPlexServerShare(PlexObject):
sections = [] sections = []
for section in data.iter('Section'): for section in data.iter('Section'):
if isinstance(section, ElementTree.Element): if ElementTree.iselement(section):
sections.append(Section(self, section, url)) sections.append(Section(self, section, url))
return sections return sections