PlexLibrarySection: Add __iter__ to PlexLibrarySection
MODIFY
plextraktsync/plex/PlexLibrarySection.py
plextraktsync/plex/PlexLibrarySection.py
@@ -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

PlexLibrarySection: Add __iter__ to PlexLibrarySection