switch from depreciated etree iterator to iter, resolves #177

This commit is contained in:
meeb committed 2021-10-19 14:16:06 +11:00
1 parent b3d9e74818
commit 42e4ee775f
1 file changed
+1 -1
+1 -1
View File
@@ -124,7 +124,7 @@ class PlexMediaServer(MediaServer):
# Seems we have a valid library sections page, get the library IDs
remote_libraries = {}
try:
for parent in parsed_response.getiterator('MediaContainer'):
for parent in parsed_response.iter('MediaContainer'):
for d in parent:
library_id = d.attrib['key']
library_name = d.attrib['title']