mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-23 04:03:05 +00:00
fix python 2, bug, dunno why the last didnt work.
This commit is contained in:
parent
419437e58b
commit
0e4d53a74c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue