mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-05 20:51:15 -07:00
Add audio profile notification parameters
This commit is contained in:
parent
0879b848b9
commit
53e5f89725
4 changed files with 7 additions and 0 deletions
|
@ -476,6 +476,7 @@ NOTIFICATION_PARAMETERS = [
|
|||
{'name': 'Stream Audio Sample Rate', 'type': 'int', 'value': 'stream_audio_sample_rate', 'description': 'The audio sample rate (in Hz) of the stream.'},
|
||||
{'name': 'Stream Audio Language', 'type': 'str', 'value': 'stream_audio_language', 'description': 'The audio language of the stream.'},
|
||||
{'name': 'Stream Audio Language Code', 'type': 'str', 'value': 'stream_audio_language_code', 'description': 'The audio language code of the stream.'},
|
||||
{'name': 'Stream Audio Profile', 'type': 'str', 'value': 'stream_audio_profile', 'description': 'The audio profile of the stream.'},
|
||||
{'name': 'Stream Subtitle Codec', 'type': 'str', 'value': 'stream_subtitle_codec', 'description': 'The subtitle codec of the stream.'},
|
||||
{'name': 'Stream Subtitle Container', 'type': 'str', 'value': 'stream_subtitle_container', 'description': 'The subtitle container of the stream.'},
|
||||
{'name': 'Stream Subtitle Format', 'type': 'str', 'value': 'stream_subtitle_format', 'description': 'The subtitle format of the stream.'},
|
||||
|
@ -606,6 +607,7 @@ NOTIFICATION_PARAMETERS = [
|
|||
{'name': 'Audio Sample Rate', 'type': 'int', 'value': 'audio_sample_rate', 'description': 'The audio sample rate (in Hz) of the original media.'},
|
||||
{'name': 'Audio Language', 'type': 'str', 'value': 'audio_language', 'description': 'The audio language of the original media.'},
|
||||
{'name': 'Audio Language Code', 'type': 'str', 'value': 'audio_language_code', 'description': 'The audio language code of the original media.'},
|
||||
{'name': 'Audio Profile', 'type': 'str', 'value': 'audio_profile', 'description': 'The audio profile of the original media.'},
|
||||
{'name': 'Subtitle Codec', 'type': 'str', 'value': 'subtitle_codec', 'description': 'The subtitle codec of the original media.'},
|
||||
{'name': 'Subtitle Container', 'type': 'str', 'value': 'subtitle_container', 'description': 'The subtitle container of the original media.'},
|
||||
{'name': 'Subtitle Format', 'type': 'str', 'value': 'subtitle_format', 'description': 'The subtitle format of the original media.'},
|
||||
|
|
|
@ -1082,6 +1082,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
|
|||
'stream_audio_sample_rate': notify_params['stream_audio_sample_rate'],
|
||||
'stream_audio_language': notify_params['stream_audio_language'],
|
||||
'stream_audio_language_code': notify_params['stream_audio_language_code'],
|
||||
'stream_audio_profile': notify_params['stream_audio_profile'],
|
||||
'stream_subtitle_codec': notify_params['stream_subtitle_codec'],
|
||||
'stream_subtitle_container': notify_params['stream_subtitle_container'],
|
||||
'stream_subtitle_format': notify_params['stream_subtitle_format'],
|
||||
|
@ -1215,6 +1216,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
|
|||
'audio_sample_rate': notify_params['audio_sample_rate'],
|
||||
'audio_language': notify_params['audio_language'],
|
||||
'audio_language_code': notify_params['audio_language_code'],
|
||||
'audio_profile': notify_params['audio_profile'],
|
||||
'subtitle_codec': notify_params['subtitle_codec'],
|
||||
'subtitle_container': notify_params['subtitle_container'],
|
||||
'subtitle_format': notify_params['subtitle_format'],
|
||||
|
|
|
@ -2096,6 +2096,7 @@ class PmsConnect(object):
|
|||
'stream_audio_channel_layout_': stream_audio_channel_layouts_,
|
||||
'stream_audio_language': helpers.get_xml_attr(audio_stream_info, 'language'),
|
||||
'stream_audio_language_code': helpers.get_xml_attr(audio_stream_info, 'languageCode'),
|
||||
'stream_audio_profile': helpers.get_xml_attr(audio_stream_info, 'profile'),
|
||||
'stream_audio_decision': helpers.get_xml_attr(audio_stream_info, 'decision') or 'direct play'
|
||||
}
|
||||
else:
|
||||
|
@ -2108,6 +2109,7 @@ class PmsConnect(object):
|
|||
'stream_audio_channel_layout_': '',
|
||||
'stream_audio_language': '',
|
||||
'stream_audio_language_code': '',
|
||||
'stream_audio_profile': '',
|
||||
'stream_audio_decision': ''
|
||||
}
|
||||
|
||||
|
|
|
@ -5921,6 +5921,7 @@ class WebInterface(object):
|
|||
"stream_audio_decision": "direct play",
|
||||
"stream_audio_language": "",
|
||||
"stream_audio_language_code": "",
|
||||
"stream_audio_profile": "",
|
||||
"stream_audio_sample_rate": "48000",
|
||||
"stream_bitrate": "10617",
|
||||
"stream_container": "mkv",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue