From c737161164b521936305fc59bfb721ec05f1af9d Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sun, 24 Mar 2024 16:37:34 -0700 Subject: [PATCH] Add dovi notification parameters Closes #2240 --- plexpy/common.py | 6 ++++++ plexpy/notification_handler.py | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/plexpy/common.py b/plexpy/common.py index a9156eb0..b87caffd 100644 --- a/plexpy/common.py +++ b/plexpy/common.py @@ -457,6 +457,9 @@ NOTIFICATION_PARAMETERS = [ {'name': 'Stream Video Color Space', 'type': 'str', 'value': 'stream_video_color_space', 'description': 'The video color space of the stream.'}, {'name': 'Stream Video Color Transfer Function', 'type': 'str', 'value': 'stream_video_color_trc', 'description': 'The video transfer function of the stream.'}, {'name': 'Stream Video Dynamic Range', 'type': 'str', 'value': 'stream_video_dynamic_range', 'description': 'The video dynamic range of the stream.', 'example': 'HDR or SDR'}, + {'name': 'Stream Video DOVI Present', 'type': 'int', 'value': 'stream_video_dovi_present', 'description': 'If Dolby Vision is present in the stream.', 'example': '0 or 1'}, + {'name': 'Stream Video DOVI Level', 'type': 'int', 'value': 'stream_video_dovi_level', 'description': 'The Dolby Vision level of the stream.'}, + {'name': 'Stream Video DOVI Profile', 'type': 'int', 'value': 'stream_video_dovi_profile', 'description': 'The Dolby Vision profile of the stream.',}, {'name': 'Stream Video Framerate', 'type': 'str', 'value': 'stream_video_framerate', 'description': 'The video framerate of the stream.'}, {'name': 'Stream Video Full Resolution', 'type': 'str', 'value': 'stream_video_full_resolution', 'description': 'The video resolution of the stream with scan type.'}, {'name': 'Stream Video Ref Frames', 'type': 'int', 'value': 'stream_video_ref_frames', 'description': 'The video reference frames of the stream.'}, @@ -582,6 +585,9 @@ NOTIFICATION_PARAMETERS = [ {'name': 'Video Color Space', 'type': 'str', 'value': 'video_color_space', 'description': 'The video color space of the original media.'}, {'name': 'Video Color Transfer Function', 'type': 'str', 'value': 'video_color_trc', 'description': 'The video transfer function of the original media.'}, {'name': 'Video Dynamic Range', 'type': 'str', 'value': 'video_dynamic_range', 'description': 'The video dynamic range of the original media.', 'example': 'HDR or SDR'}, + {'name': 'Video DOVI Present', 'type': 'int', 'value': 'video_dovi_present', 'description': 'If Dolby Vision is present in the original media.', 'example': '0 or 1'}, + {'name': 'Video DOVI Level', 'type': 'int', 'value': 'video_dovi_level', 'description': 'The Dolby Vision level of the original media.'}, + {'name': 'Video DOVI Profile', 'type': 'int', 'value': 'video_dovi_profile', 'description': 'The Dolby Vision profile of the original media.',}, {'name': 'Video Framerate', 'type': 'str', 'value': 'video_framerate', 'description': 'The video framerate of the original media.'}, {'name': 'Video Full Resolution', 'type': 'str', 'value': 'video_full_resolution', 'description': 'The video resolution of the original media with scan type.'}, {'name': 'Video Ref Frames', 'type': 'int', 'value': 'video_ref_frames', 'description': 'The video reference frames of the original media.'}, diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index dd45e761..b2780835 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -1067,6 +1067,9 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m 'stream_video_color_space': notify_params['stream_video_color_space'], 'stream_video_color_trc': notify_params['stream_video_color_trc'], 'stream_video_dynamic_range': notify_params['stream_video_dynamic_range'], + 'stream_video_dovi_present': notify_params['stream_video_dovi_present'], + 'stream_video_dovi_level': notify_params['stream_video_dovi_level'], + 'stream_video_dovi_profile': notify_params['stream_video_dovi_profile'], 'stream_video_framerate': notify_params['stream_video_framerate'], 'stream_video_full_resolution': notify_params['stream_video_full_resolution'], 'stream_video_ref_frames': notify_params['stream_video_ref_frames'], @@ -1195,6 +1198,9 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m 'video_color_space': notify_params['video_color_space'], 'video_color_trc': notify_params['video_color_trc'], 'video_dynamic_range': notify_params['video_dynamic_range'], + 'video_dovi_present': notify_params['video_dovi_present'], + 'video_dovi_level': notify_params['video_dovi_level'], + 'video_dovi_profile': notify_params['video_dovi_profile'], 'video_framerate': notify_params['video_framerate'], 'video_full_resolution': notify_params['video_full_resolution'], 'video_ref_frames': notify_params['video_ref_frames'],