From eae9e66c75f7b2a3ccdb4db671681bd7ad41c88e Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Tue, 2 Jan 2018 16:18:50 -0800 Subject: [PATCH] Updating missing notification parameters --- plexpy/common.py | 8 +++++++- plexpy/notification_handler.py | 7 +++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/plexpy/common.py b/plexpy/common.py index 942ceb3d..3b34c9c5 100644 --- a/plexpy/common.py +++ b/plexpy/common.py @@ -309,7 +309,13 @@ NOTIFICATION_PARAMETERS = [ {'name': 'Transcode Video Height', 'type': 'int', 'value': 'transcode_video_height', 'description': 'The video height of the transcoded stream.'}, {'name': 'Transcode Audio Codec', 'type': 'str', 'value': 'transcode_audio_codec', 'description': 'The audio codec of the transcoded stream.'}, {'name': 'Transcode Audio Channels', 'type': 'float', 'value': 'transcode_audio_channels', 'description': 'The audio channels of the transcoded stream.'}, - {'name': 'Transcode Hardware', 'type': 'int', 'value': 'transcode_hardware', 'description': 'If hardware transcoding is used.', 'example': '0 or 1'}, + {'name': 'Transcode HW Requested', 'type': 'int', 'value': 'transcode_hw_requested', 'description': 'If hardware decoding/encoding was requested.', 'example': '0 or 1'}, + {'name': 'Transcode HW Decoding', 'type': 'int', 'value': 'transcode_hw_decoding', 'description': 'If hardware decoding is used.', 'example': '0 or 1'}, + {'name': 'Transcode HW Decoding Codec', 'type': 'str', 'value': 'transcode_hw_decode', 'description': 'The hardware decoding codec.'}, + {'name': 'Transcode HW Decoding Title', 'type': 'str', 'value': 'transcode_hw_decode_title', 'description': 'The hardware decoding codec title.'}, + {'name': 'Transcode HW Encoding', 'type': 'int', 'value': 'transcode_hw_encoding', 'description': 'If hardware encoding is used.', 'example': '0 or 1'}, + {'name': 'Transcode HW Encoding Codec', 'type': 'str', 'value': 'transcode_hw_encode', 'description': 'The hardware encoding codec.'}, + {'name': 'Transcode HW Encoding Title', 'type': 'str', 'value': 'transcode_hw_encode_title', 'description': 'The hardware encoding codec title.'}, {'name': 'Session Key', 'type': 'str', 'value': 'session_key', 'description': 'The unique identifier for the session.'}, {'name': 'Transcode Key', 'type': 'str', 'value': 'transcode_key', 'description': 'The unique identifier for the transcode session.'}, {'name': 'Session ID', 'type': 'str', 'value': 'session_id', 'description': 'The unique identifier for the stream.'}, diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 0516b789..66adcfe4 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -675,6 +675,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m 'quality_profile': session.get('quality_profile',''), 'optimized_version': session.get('optimized_version',''), 'optimized_version_profile': session.get('optimized_version_profile',''), + 'synced_version': session.get('synced_version', ''), 'stream_local': session.get('local', ''), 'stream_location': session.get('location', ''), 'stream_bandwidth': session.get('bandwidth', ''), @@ -714,9 +715,11 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m 'transcode_audio_codec': session.get('transcode_audio_codec',''), 'transcode_audio_channels': session.get('transcode_audio_channels',''), 'transcode_hw_requested': session.get('transcode_hw_requested',''), - 'transcode_hw_decode': session.get('transcode_hw_decode',''), + 'transcode_hw_decoding': session.get('transcode_hw_decoding',''), + 'transcode_hw_decode_codec': session.get('transcode_hw_decode',''), 'transcode_hw_decode_title': session.get('transcode_hw_decode_title',''), - 'transcode_hw_encode': session.get('transcode_hw_encode',''), + 'transcode_hw_encoding': session.get('transcode_hw_encoding',''), + 'transcode_hw_encode_codec': session.get('transcode_hw_encode',''), 'transcode_hw_encode_title': session.get('transcode_hw_encode_title',''), 'transcode_hw_full_pipeline': session.get('transcode_hw_full_pipeline',''), 'session_key': session.get('session_key',''),