mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 09:42:57 -07:00
Add container_decision to notification parameters
This commit is contained in:
parent
e4e0b765b6
commit
9740010368
5 changed files with 9 additions and 4 deletions
1
API.md
1
API.md
|
@ -427,6 +427,7 @@ Returns:
|
||||||
"children_count": "",
|
"children_count": "",
|
||||||
"collections": [],
|
"collections": [],
|
||||||
"container": "mkv",
|
"container": "mkv",
|
||||||
|
"container_decision": "direct play",
|
||||||
"content_rating": "TV-MA",
|
"content_rating": "TV-MA",
|
||||||
"deleted_user": 0,
|
"deleted_user": 0,
|
||||||
"device": "Windows",
|
"device": "Windows",
|
||||||
|
|
|
@ -382,10 +382,11 @@ NOTIFICATION_PARAMETERS = [
|
||||||
{'name': 'Progress Duration', 'type': 'int', 'value': 'progress_duration', 'description': 'The last reported offset (in minutes) of the stream.'},
|
{'name': 'Progress Duration', 'type': 'int', 'value': 'progress_duration', 'description': 'The last reported offset (in minutes) of the stream.'},
|
||||||
{'name': 'Progress Time', 'type': 'str', 'value': 'progress_time', 'description': 'The last reported offset (in time format) of the stream.'},
|
{'name': 'Progress Time', 'type': 'str', 'value': 'progress_time', 'description': 'The last reported offset (in time format) of the stream.'},
|
||||||
{'name': 'Progress Percent', 'type': 'int', 'value': 'progress_percent', 'description': 'The last reported progress percent of the stream.'},
|
{'name': 'Progress Percent', 'type': 'int', 'value': 'progress_percent', 'description': 'The last reported progress percent of the stream.'},
|
||||||
{'name': 'Transcode Decision', 'type': 'str', 'value': 'transcode_decision', 'description': 'The transcode decisions of the stream.'},
|
{'name': 'Transcode Decision', 'type': 'str', 'value': 'transcode_decision', 'description': 'The transcode decision of the stream.'},
|
||||||
{'name': 'Video Decision', 'type': 'str', 'value': 'video_decision', 'description': 'The video transcode decisions of the stream.'},
|
{'name': 'Container Decision', 'type': 'str', 'value': 'container_decision', 'description': 'The container transcode decision of the stream.'},
|
||||||
{'name': 'Audio Decision', 'type': 'str', 'value': 'audio_decision', 'description': 'The audio transcode decisions of the stream.'},
|
{'name': 'Video Decision', 'type': 'str', 'value': 'video_decision', 'description': 'The video transcode decision of the stream.'},
|
||||||
{'name': 'Subtitle Decision', 'type': 'str', 'value': 'subtitle_decision', 'description': 'The subtitle transcode decisions of the stream.'},
|
{'name': 'Audio Decision', 'type': 'str', 'value': 'audio_decision', 'description': 'The audio transcode decision of the stream.'},
|
||||||
|
{'name': 'Subtitle Decision', 'type': 'str', 'value': 'subtitle_decision', 'description': 'The subtitle transcode decision of the stream.'},
|
||||||
{'name': 'Quality Profile', 'type': 'str', 'value': 'quality_profile', 'description': 'The Plex quality profile of the stream.', 'example': 'e.g. Original, 4 Mbps 720p, etc.'},
|
{'name': 'Quality Profile', 'type': 'str', 'value': 'quality_profile', 'description': 'The Plex quality profile of the stream.', 'example': 'e.g. Original, 4 Mbps 720p, etc.'},
|
||||||
{'name': 'Optimized Version', 'type': 'int', 'value': 'optimized_version', 'description': 'If the stream is an optimized version.', 'example': '0 or 1'},
|
{'name': 'Optimized Version', 'type': 'int', 'value': 'optimized_version', 'description': 'If the stream is an optimized version.', 'example': '0 or 1'},
|
||||||
{'name': 'Optimized Version Profile', 'type': 'str', 'value': 'optimized_version_profile', 'description': 'The optimized version profile of the stream.'},
|
{'name': 'Optimized Version Profile', 'type': 'str', 'value': 'optimized_version_profile', 'description': 'The optimized version profile of the stream.'},
|
||||||
|
|
|
@ -899,6 +899,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
|
||||||
'progress_percent': helpers.get_percent(view_offset, duration),
|
'progress_percent': helpers.get_percent(view_offset, duration),
|
||||||
'initial_stream': notify_params['initial_stream'],
|
'initial_stream': notify_params['initial_stream'],
|
||||||
'transcode_decision': transcode_decision,
|
'transcode_decision': transcode_decision,
|
||||||
|
'container_decision': notify_params['container_decision'],
|
||||||
'video_decision': notify_params['video_decision'],
|
'video_decision': notify_params['video_decision'],
|
||||||
'audio_decision': notify_params['audio_decision'],
|
'audio_decision': notify_params['audio_decision'],
|
||||||
'subtitle_decision': notify_params['subtitle_decision'],
|
'subtitle_decision': notify_params['subtitle_decision'],
|
||||||
|
|
|
@ -2070,6 +2070,7 @@ class PmsConnect(object):
|
||||||
transcode_decision = 'direct play'
|
transcode_decision = 'direct play'
|
||||||
|
|
||||||
stream_details['transcode_decision'] = transcode_decision
|
stream_details['transcode_decision'] = transcode_decision
|
||||||
|
stream_details['container_decision'] = stream_details['stream_container_decision']
|
||||||
|
|
||||||
# Override * in audio codecs
|
# Override * in audio codecs
|
||||||
if stream_details['stream_audio_codec'] == '*':
|
if stream_details['stream_audio_codec'] == '*':
|
||||||
|
|
|
@ -5397,6 +5397,7 @@ class WebInterface(object):
|
||||||
"children_count": "",
|
"children_count": "",
|
||||||
"collections": [],
|
"collections": [],
|
||||||
"container": "mkv",
|
"container": "mkv",
|
||||||
|
"container_decision": "direct play",
|
||||||
"content_rating": "TV-MA",
|
"content_rating": "TV-MA",
|
||||||
"deleted_user": 0,
|
"deleted_user": 0,
|
||||||
"device": "Windows",
|
"device": "Windows",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue