Rewrite rating method to be readable
MODIFY
plex_trakt_sync/plex_api.py
plex_trakt_sync/plex_api.py
@@ -201,7 +201,10 @@ def show_id(self):
@memoize
@rate_limit(retries=1)
def rating(self):
- return int(self.item.userRating) if self.item.userRating is not None else None
+ if self.item.userRating is None:
+ return None
+
+ return int(self.item.userRating)
@property
@memoize

Rewrite rating method to be readable