diff --git a/plexpy/common.py b/plexpy/common.py index b87caffd..10679449 100644 --- a/plexpy/common.py +++ b/plexpy/common.py @@ -437,8 +437,11 @@ NOTIFICATION_PARAMETERS = [ {'name': 'Credits Marker First', 'type': 'int', 'value': 'credits_marker_first', 'description': 'If the marker is the first credits marker.', 'example': '0 or 1'}, {'name': 'Credits Marker Final', 'type': 'int', 'value': 'credits_marker_final', 'description': 'If the marker is the final credits marker.', '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 ID', 'type': 'str', 'value': 'channel_id', 'description': 'The Live TV channel number.'}, + {'name': 'Channel Identifier', 'type': 'str', 'value': 'channel_identifier', 'description': 'The Live TV channel identifier.'}, + {'name': 'Channel Title', 'type': 'str', 'value': 'channel_title', 'description': 'The Live TV channel title.'}, {'name': 'Channel Thumb', 'type': 'str', 'value': 'channel_thumb', 'description': 'The URL for the Live TV channel logo.'}, + {'name': 'Channel VCN', 'type': 'str', 'value': 'channel_title', 'description': 'The Live TV tuner channel number.'}, {'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/datafactory.py b/plexpy/datafactory.py index b3c6b138..041c3e41 100644 --- a/plexpy/datafactory.py +++ b/plexpy/datafactory.py @@ -1539,8 +1539,9 @@ class DataFactory(object): "session_history_media_info.video_full_resolution, " \ "session_history_media_info.video_framerate, session_history_media_info.audio_codec, " \ "session_history_media_info.audio_channels, session_history_metadata.live, " \ - "session_history_metadata.channel_call_sign, session_history_metadata.channel_identifier, " \ - "session_history_metadata.channel_thumb " \ + "session_history_metadata.channel_call_sign, session_history_metadata.channel_id, " \ + "session_history_metadata.channel_identifier, session_history_metadata.channel_title, " \ + "session_history_metadata.channel_thumb, session_history_metadata.channel_vcn " \ "FROM session_history_metadata " \ "JOIN library_sections ON session_history.section_id = library_sections.section_id " \ "JOIN session_history ON session_history_metadata.id = session_history.id " \ @@ -1570,8 +1571,11 @@ class DataFactory(object): 'audio_codec': item['audio_codec'], 'audio_channels': item['audio_channels'], 'channel_call_sign': item['channel_call_sign'], + 'channel_id': item['channel_id'], 'channel_identifier': item['channel_identifier'], - 'channel_thumb': item['channel_thumb'] + 'channel_title': item['channel_title'], + 'channel_thumb': item['channel_thumb'], + 'channel_vcn': item['channel_vcn'] }] metadata = {'media_type': item['media_type'], diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index b2780835..c58bae9a 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -1047,8 +1047,11 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m 'credits_marker_first': helpers.cast_to_int(marker['first']), 'credits_marker_final': helpers.cast_to_int(marker['final']), 'channel_call_sign': notify_params['channel_call_sign'], + 'channel_id': notify_params['channel_id'], 'channel_identifier': notify_params['channel_identifier'], + 'channel_title': notify_params['channel_title'], 'channel_thumb': notify_params['channel_thumb'], + 'channel_vcn': notify_params['channel_vcn'], 'secure': 'unknown' if notify_params['secure'] is None else notify_params['secure'], 'relayed': notify_params['relayed'], 'stream_local': notify_params['local'],