From 8a94f6d63a81bcd36490536e5a173745ce25b6e3 Mon Sep 17 00:00:00 2001 From: Landon Abney Date: Wed, 19 Sep 2018 12:39:49 -0700 Subject: [PATCH] Fix the type of the Content Rating notification parameter The "Content Rating" notification parameter was incorrectly marked as an integer, leading to all values being cast to the number 0. This made it so every single content rating was the same value in conditions. --- plexpy/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/common.py b/plexpy/common.py index 0f00775c..bbd52566 100644 --- a/plexpy/common.py +++ b/plexpy/common.py @@ -433,7 +433,7 @@ NOTIFICATION_PARAMETERS = [ {'name': 'Updated Date', 'type': 'str', 'value': 'updated_date', 'description': 'The date (in date format) the item was updated on Plex.'}, {'name': 'Last Viewed Date', 'type': 'str', 'value': 'last_viewed_date', 'description': 'The date (in date format) the item was last viewed on Plex.'}, {'name': 'Studio', 'type': 'str', 'value': 'studio', 'description': 'The studio for the item.'}, - {'name': 'Content Rating', 'type': 'int', 'value': 'content_rating', 'description': 'The content rating for the item.', 'example': 'e.g. TV-MA, TV-PG, etc.'}, + {'name': 'Content Rating', 'type': 'str', 'value': 'content_rating', 'description': 'The content rating for the item.', 'example': 'e.g. TV-MA, TV-PG, etc.'}, {'name': 'Directors', 'type': 'str', 'value': 'directors', 'description': 'A list of directors for the item.'}, {'name': 'Writers', 'type': 'str', 'value': 'writers', 'description': 'A list of writers for the item.'}, {'name': 'Actors', 'type': 'str', 'value': 'actors', 'description': 'A list of actors for the item.'},