Skip to content

Commit

Permalink
Add rating titles from trakt
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Dec 28, 2024
1 parent 6c7d406 commit 24bac5d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions plextraktsync/util/Rating.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@ class Rating(NamedTuple):
rating: int
rated_at: datetime | None

RATING_TITLES = {
1: "Weak Sauce :(",
2: "Terrible",
3: "Bad",
4: "Poor",
5: "Meh",
6: "Fair",
7: "Good",
8: "Great",
9: "Superb",
10: "Totally Ninja!",
}

def __eq__(self, other):
"""Ratings are equal if their rating value is the same"""
if isinstance(other, (int, float)):
Expand Down

0 comments on commit 24bac5d

Please sign in to comment.