diff --git a/resources/lib/plex_functions.py b/resources/lib/plex_functions.py index 9a182131..4c66ec2d 100644 --- a/resources/lib/plex_functions.py +++ b/resources/lib/plex_functions.py @@ -602,9 +602,6 @@ class DownloadGen(object): def __iter__(self): return self - def next(self): - return self.__next__() - def __next__(self): while True: if len(self.xml): @@ -622,6 +619,8 @@ class DownloadGen(object): raise StopIteration LOG.debug('Waiting for download to finish') + next = __next__ + def get(self, key, default=None): return self.attrib.get(key, default)