Add system_account method
MODIFY
plex_trakt_sync/plex_api.py
plex_trakt_sync/plex_api.py
from plexapi import X_PLEX_CONTAINER_SIZE
from plexapi.exceptions import BadRequest, NotFound
from plexapi.library import LibrarySection, MovieSection, ShowSection
-from plexapi.server import PlexServer, SystemDevice
+from plexapi.server import PlexServer, SystemAccount, SystemDevice
from trakt.utils import timestamp
from plex_trakt_sync.decorators.deprecated import deprecated
@@ -480,6 +480,11 @@ def library_section_names(self):
def system_device(self, device_id: int) -> SystemDevice:
return self.plex.systemDevice(device_id)
+ @memoize
+ @nocache
+ def system_account(self, account_id: int) -> SystemAccount:
+ return self.plex.systemAccount(account_id)
+
@nocache
def rate(self, m, rating):
m.rate(rating)

Add system_account method