From 15afbe300131d38cb86751c16a29ecdb22bb51b5 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Tue, 27 Sep 2022 23:28:48 +0000 Subject: [PATCH] Add edition_title notification parameter --- plexpy/common.py | 3 ++- plexpy/notification_handler.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plexpy/common.py b/plexpy/common.py index b89ef48a..039931f4 100644 --- a/plexpy/common.py +++ b/plexpy/common.py @@ -489,8 +489,9 @@ NOTIFICATION_PARAMETERS = [ 'category': 'Source Metadata Details', 'parameters': [ {'name': 'Media Type', 'type': 'str', 'value': 'media_type', 'description': 'The type of media.', 'example': 'movie, show, season, episode, artist, album, track, clip'}, - {'name': 'Title', 'type': 'str', 'value': 'title', 'description': 'The full title of the item.'}, {'name': 'Library Name', 'type': 'str', 'value': 'library_name', 'description': 'The library name of the item.'}, + {'name': 'Title', 'type': 'str', 'value': 'title', 'description': 'The full title of the item.'}, + {'name': 'Edition Title', 'type': 'str', 'value': 'edition_title', 'description': 'The edition title of the movie.'}, {'name': 'Show Name', 'type': 'str', 'value': 'show_name', 'description': 'The title of the TV show.'}, {'name': 'Season Name', 'type': 'str', 'value': 'season_name', 'description': 'The title of the TV season.'}, {'name': 'Episode Name', 'type': 'str', 'value': 'episode_name', 'description': 'The title of the TV episode.'}, diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 1fc6ff83..ad774fa6 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -1066,8 +1066,9 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m 'machine_id': notify_params['machine_id'], # Source metadata parameters 'media_type': notify_params['media_type'], - 'title': notify_params['full_title'], 'library_name': notify_params['library_name'], + 'title': notify_params['full_title'], + 'edition_title': notify_params['edition_title'], 'show_name': show_name, 'season_name': season_name, 'episode_name': episode_name,