Add PlexLibrarySection class
Add .title property and .add() method,
Those are what are used externally.
-from plexapi.library import MovieSection, ShowSection
+from plexapi.library import MovieSection, ShowSection, LibrarySection
from plex_trakt_sync.decorators import memoize, nocache
from plex_trakt_sync.config import CONFIG
+class PlexLibrarySection:
+ def __init__(self, section: LibrarySection):
+ self.section = section
+
+ @property
+ def title(self):
+ return self.section.title
+
+ @memoize
+ @nocache
+ def all(self):
+ return self.section.all()
+
+
class PlexApi:
"""
Plex API class abstracting common data access and dealing with requests cache.
