Skip to content

Commit

Permalink
Merge pull request #1108 from glensc/1106-episode-ratings
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc authored Oct 17, 2022
2 parents 387b38a + f4b5458 commit 10be7a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plextraktsync/trakt_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 10be7a0

Please sign in to comment.