Add ratings helper
MODIFY
plex_trakt_sync/trakt_api.py
plex_trakt_sync/trakt_api.py
@@ -73,3 +73,12 @@ def watchlist_movies(self):
@nocache
def movie_ratings(self):
return self.me.get_ratings(media_type='movies')
+
+ @property
+ @memoize
+ def ratings(self):
+ ratings = {}
+ for r in self.movie_ratings:
+ ratings[r['movie']['ids']['slug']] = r['rating']
+
+ return ratings

Add ratings helper