Setup PlexAccount only when needed
This avoids warning when using watch
where plex account token is not yet available.
MODIFY
plextraktsync/plex_api.py
plextraktsync/plex_api.py
@@ -477,7 +477,10 @@ class PlexApi:
def __init__(self, plex: PlexServer):
self.plex = plex
- self.account = self._plex_account()
+
+ @cached_property
+ def account(self):
+ return self._plex_account()
@cached_property
def plex_base_url(self):

Setup PlexAccount only when needed

This avoids warning when using watch
where plex account token is not yet available.