switch from depreciated etree iterator to iter, resolves #177

This commit is contained in:
meeb 2021-10-19 14:16:06 +11:00
parent b3d9e74818
commit 42e4ee775f
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ class PlexMediaServer(MediaServer):
# Seems we have a valid library sections page, get the library IDs # Seems we have a valid library sections page, get the library IDs
remote_libraries = {} remote_libraries = {}
try: try:
for parent in parsed_response.getiterator('MediaContainer'): for parent in parsed_response.iter('MediaContainer'):
for d in parent: for d in parent:
library_id = d.attrib['key'] library_id = d.attrib['key']
library_name = d.attrib['title'] library_name = d.attrib['title']