From feab4115eeb915199654692b06d8aa4bb34f56ca Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sat, 27 Apr 2019 15:54:46 -0700 Subject: [PATCH] Add secure and relayed to notification parameters --- plexpy/common.py | 2 ++ plexpy/notification_handler.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/plexpy/common.py b/plexpy/common.py index dc99464e..1ef38a5a 100644 --- a/plexpy/common.py +++ b/plexpy/common.py @@ -353,6 +353,8 @@ NOTIFICATION_PARAMETERS = [ {'name': 'Optimized Version Profile', 'type': 'str', 'value': 'optimized_version_profile', 'description': 'The optimized version profile of the stream.'}, {'name': 'Synced Version', 'type': 'int', 'value': 'synced_version', 'description': 'If the stream is an synced version.', 'example': '0 or 1'}, {'name': 'Live', 'type': 'int', 'value': 'live', 'description': 'If the stream is live TV.', 'example': '0 or 1'}, + {'name': 'Secure', 'type': 'int', 'value': 'secure', 'description': 'If the stream is using a secure connection.', 'example': '0 or 1'}, + {'name': 'Relayed', 'type': 'int', 'value': 'relayed', 'description': 'If the stream is using Plex Relay.', 'example': '0 or 1'}, {'name': 'Stream Local', 'type': 'int', 'value': 'stream_local', 'description': 'If the stream is local.', 'example': '0 or 1'}, {'name': 'Stream Location', 'type': 'str', 'value': 'stream_location', 'description': 'The network location of the stream.', 'example': 'lan or wan'}, {'name': 'Stream Bandwidth', 'type': 'int', 'value': 'stream_bandwidth', 'description': 'The required bandwidth (in kbps) of the stream.', 'help_text': 'not the used bandwidth'}, diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index efae6c2e..0bba9a9c 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -771,6 +771,8 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m 'optimized_version_profile': notify_params['optimized_version_profile'], 'synced_version': notify_params['synced_version'], 'live': notify_params['live'], + 'secure': 'unknown' if notify_params['secure'] is None else notify_params['secure'], + 'relayed': notify_params['relayed'], 'stream_local': notify_params['local'], 'stream_location': notify_params['location'], 'stream_bandwidth': notify_params['bandwidth'],