Add episodes to valid rating type. Fixes
MODIFY
plextraktsync/trakt_api.py
plextraktsync/trakt_api.py
@@ -217,9 +217,9 @@ def rating(self, m) -> Optional[int]:
The trakt api (Python module) is inconsistent:
- Movie has "rating" property, while TVShow does not
However, the Movie property is always None.
- So fetch for both types.
+ So fetch for all types.
"""
- if m.media_type in ["movies", "shows"]:
+ if m.media_type in ["movies", "shows", "episodes"]:
r = self.ratings[m.media_type]
return r.get(m.trakt, None)
else:

Add episodes to valid rating type. Fixes #1106