Add show_ratings to trakt_api
MODIFY
plextraktsync/trakt_api.py
plextraktsync/trakt_api.py
@@ -139,6 +139,15 @@ def movie_ratings(self):
ratings[r['movie']['ids']['trakt']] = r['rating']
return ratings
+ @cached_property
+ @nocache
+ @rate_limit()
+ def show_ratings(self):
+ ratings = {}
+ for r in self.me.get_ratings(media_type='shows'):
+ ratings[r['show']['ids']['trakt']] = r['rating']
+ return ratings
+
@cached_property
@nocache
@rate_limit()

Add show_ratings to trakt_api