From 2c45de1fe59508a5185bf6aec183c7ba0ad2971e Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sat, 22 Feb 2020 12:12:45 -0800 Subject: [PATCH] Add Live TV channel notification parameters --- plexpy/common.py | 3 +++ plexpy/notification_handler.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/plexpy/common.py b/plexpy/common.py index ecd1b1b2..1e953b97 100644 --- a/plexpy/common.py +++ b/plexpy/common.py @@ -361,6 +361,9 @@ 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': 'Channel Call Sign', 'type': 'str', 'value': 'channel_call_sign', 'description': 'The Live TV channel call sign.'}, + {'name': 'Channel Identifier', 'type': 'str', 'value': 'channel_identifier', 'description': 'The Live TV channel number.'}, + {'name': 'Channel Thumb', 'type': 'str', 'value': 'channel_thumb', 'description': 'The URL for the Live TV channel logo.'}, {'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'}, diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 09165a6c..53d8e3aa 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -825,6 +825,9 @@ 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'], + 'channel_call_sign': notify_params['channel_call_sign'], + 'channel_identifier': notify_params['channel_identifier'], + 'channel_thumb': notify_params['channel_thumb'], 'secure': 'unknown' if notify_params['secure'] is None else notify_params['secure'], 'relayed': notify_params['relayed'], 'stream_local': notify_params['local'],