Add memoize and nocache decorators to plex api methods
+from plex_trakt_sync.decorators import memoize, nocache
from plex_trakt_sync.main import get_plex_server
from plex_trakt_sync.config import CONFIG
@@ -8,10 +9,14 @@ class PlexApi:
"""
@property
+ @memoize
+ @nocache
def plex_server(self):
return get_plex_server()
@property
+ @memoize
+ @nocache
def library_sections(self):
result = []
for section in self.plex_server.library.sections():
