Change self.plex.rating to a method
MODIFY
plextraktsync/media.py
plextraktsync/media.py
@@ -178,9 +178,9 @@ def mark_watched_plex(self):
def trakt_rating(self):
return self.trakt_api.rating(self.trakt)
- @property
+ @cached_property
def plex_rating(self):
- return self.plex.rating
+ return self.plex.rating()
def trakt_rate(self):
self.trakt_api.rate(self.trakt, self.plex_rating)

MODIFY
plextraktsync/plex_api.py
plextraktsync/plex_api.py
@@ -221,7 +221,6 @@ def title(self):
return value
- @cached_property
@nocache
@retry(retries=1)
def rating(self):

Change self.plex.rating to a method