mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-14 01:02:59 -07:00
Add live tv channel keys notification parameters
This commit is contained in:
parent
3dc6d226f8
commit
e3245bc126
3 changed files with 14 additions and 4 deletions
|
@ -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 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': '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 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 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': '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': '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 Local', 'type': 'int', 'value': 'stream_local', 'description': 'If the stream is local.', 'example': '0 or 1'},
|
||||||
|
|
|
@ -1539,8 +1539,9 @@ class DataFactory(object):
|
||||||
"session_history_media_info.video_full_resolution, " \
|
"session_history_media_info.video_full_resolution, " \
|
||||||
"session_history_media_info.video_framerate, session_history_media_info.audio_codec, " \
|
"session_history_media_info.video_framerate, session_history_media_info.audio_codec, " \
|
||||||
"session_history_media_info.audio_channels, session_history_metadata.live, " \
|
"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_call_sign, session_history_metadata.channel_id, " \
|
||||||
"session_history_metadata.channel_thumb " \
|
"session_history_metadata.channel_identifier, session_history_metadata.channel_title, " \
|
||||||
|
"session_history_metadata.channel_thumb, session_history_metadata.channel_vcn " \
|
||||||
"FROM session_history_metadata " \
|
"FROM session_history_metadata " \
|
||||||
"JOIN library_sections ON session_history.section_id = library_sections.section_id " \
|
"JOIN library_sections ON session_history.section_id = library_sections.section_id " \
|
||||||
"JOIN session_history ON session_history_metadata.id = session_history.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_codec': item['audio_codec'],
|
||||||
'audio_channels': item['audio_channels'],
|
'audio_channels': item['audio_channels'],
|
||||||
'channel_call_sign': item['channel_call_sign'],
|
'channel_call_sign': item['channel_call_sign'],
|
||||||
|
'channel_id': item['channel_id'],
|
||||||
'channel_identifier': item['channel_identifier'],
|
'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'],
|
metadata = {'media_type': item['media_type'],
|
||||||
|
|
|
@ -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_first': helpers.cast_to_int(marker['first']),
|
||||||
'credits_marker_final': helpers.cast_to_int(marker['final']),
|
'credits_marker_final': helpers.cast_to_int(marker['final']),
|
||||||
'channel_call_sign': notify_params['channel_call_sign'],
|
'channel_call_sign': notify_params['channel_call_sign'],
|
||||||
|
'channel_id': notify_params['channel_id'],
|
||||||
'channel_identifier': notify_params['channel_identifier'],
|
'channel_identifier': notify_params['channel_identifier'],
|
||||||
|
'channel_title': notify_params['channel_title'],
|
||||||
'channel_thumb': notify_params['channel_thumb'],
|
'channel_thumb': notify_params['channel_thumb'],
|
||||||
|
'channel_vcn': notify_params['channel_vcn'],
|
||||||
'secure': 'unknown' if notify_params['secure'] is None else notify_params['secure'],
|
'secure': 'unknown' if notify_params['secure'] is None else notify_params['secure'],
|
||||||
'relayed': notify_params['relayed'],
|
'relayed': notify_params['relayed'],
|
||||||
'stream_local': notify_params['local'],
|
'stream_local': notify_params['local'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue