From bd6dd74518ebe08a86d8f4d3cc1cc5db010c3f99 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Mon, 29 Mar 2021 10:59:11 -0700 Subject: [PATCH] Add guid notification parameter --- plexpy/common.py | 1 + plexpy/notification_handler.py | 1 + 2 files changed, 2 insertions(+) diff --git a/plexpy/common.py b/plexpy/common.py index 8606d57e..4a44370a 100644 --- a/plexpy/common.py +++ b/plexpy/common.py @@ -561,6 +561,7 @@ NOTIFICATION_PARAMETERS = [ {'name': 'File', 'type': 'str', 'value': 'file', 'description': 'The file path to the item.'}, {'name': 'Filename', 'type': 'str', 'value': 'filename', 'description': 'The file name of the item.'}, {'name': 'File Size', 'type': 'int', 'value': 'file_size', 'description': 'The file size of the item.'}, + {'name': 'Guid', 'type': 'str', 'value': 'guid', 'description': 'The full guid for the item.'}, {'name': 'Section ID', 'type': 'int', 'value': 'section_id', 'description': 'The unique identifier for the library.'}, {'name': 'Rating Key', 'type': 'int', 'value': 'rating_key', 'description': 'The unique identifier for the movie, episode, or track.'}, {'name': 'Parent Rating Key', 'type': 'int', 'value': 'parent_rating_key', 'description': 'The unique identifier for the season or album.'}, diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index ba119668..48dd78bd 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -1084,6 +1084,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m 'filename': os.path.basename(notify_params['file']), 'file_size': helpers.human_file_size(notify_params['file_size']), 'indexes': notify_params['indexes'], + 'guid': notify_params['guid'], 'section_id': notify_params['section_id'], 'rating_key': notify_params['rating_key'], 'parent_rating_key': notify_params['parent_rating_key'],