Use snake-case rating_key
MODIFY
plex_trakt_sync/commands/webhook.py
plex_trakt_sync/commands/webhook.py
@@ -21,11 +21,11 @@ def __init__(self, plex: PlexApi, mf: MediaFactory):
def handle(self, payload):
logger.debug(f"Handle: {payload}")
- if "ratingKey" not in payload:
+ if "rating_key" not in payload:
logger.debug(f"Skip, no ratingKey in payload")
return
- rating_key = int(payload["ratingKey"])
+ rating_key = int(payload["rating_key"])
logger.debug(f"RatingKey: {rating_key}")
if rating_key:
self.sync(rating_key)

Use snake-case rating_key