Add show_ratings to trakt_api
@@ -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()
