Add container_decision to notification parameters

This commit is contained in:
JonnyWong16 2020-09-21 18:06:40 -07:00
parent e4e0b765b6
commit 9740010368
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
5 changed files with 9 additions and 4 deletions

1
API.md
View file

@ -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",

View file

@ -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.'},

View file

@ -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'],

View file

@ -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'] == '*':

View file

@ -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",