Skip to content

Commit

Permalink
Media: Do not pass unused show_id to plex rating
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Apr 11, 2024
1 parent ca51a7a commit 7984ed3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plextraktsync/media/Media.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,7 @@ def trakt_rating(self):

@cached_property
def plex_rating(self):
if self.media_type == "episodes" and not self.plex.is_discover and self.show:
show_id = self.show.plex.item.ratingKey
else:
show_id = None
return self.plex.rating(show_id)
return self.plex.rating()

def trakt_rate(self):
rating = self.plex_rating
Expand Down

0 comments on commit 7984ed3

Please sign in to comment.