Add length magic property to PlexLibrarySection
MODIFY
plex_trakt_sync/plex_api.py
plex_trakt_sync/plex_api.py
@@ -62,6 +62,9 @@ class PlexLibrarySection:
def __init__(self, section: LibrarySection):
self.section = section
+ def __len__(self):
+ return len(self.all())
+
@property
def title(self):
return self.section.title

Add length magic property to PlexLibrarySection