PlexLibrarySection: Add __iter__ to PlexLibrarySection
@@ -27,6 +27,9 @@ def __init__(self, section: LibrarySection, plex: PlexApi = None):
def __len__(self):
return self.section.totalSize
+ def __iter__(self):
+ return self.items(len(self))
+
@property
def type(self):
return self.section.type
