diff --git a/API.md b/API.md index f2c1fdfe..5961deec 100644 --- a/API.md +++ b/API.md @@ -427,6 +427,7 @@ Returns: "children_count": "", "collections": [], "container": "mkv", + "container_decision": "direct play", "content_rating": "TV-MA", "deleted_user": 0, "device": "Windows", diff --git a/plexpy/common.py b/plexpy/common.py index 6032fd0f..e8ee7d86 100644 --- a/plexpy/common.py +++ b/plexpy/common.py @@ -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 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': 'Transcode Decision', 'type': 'str', 'value': 'transcode_decision', 'description': 'The transcode decisions of the stream.'}, - {'name': 'Video Decision', 'type': 'str', 'value': 'video_decision', 'description': 'The video transcode decisions of the stream.'}, - {'name': 'Audio Decision', 'type': 'str', 'value': 'audio_decision', 'description': 'The audio transcode decisions of the stream.'}, - {'name': 'Subtitle Decision', 'type': 'str', 'value': 'subtitle_decision', 'description': 'The subtitle transcode decisions of the stream.'}, + {'name': 'Transcode Decision', 'type': 'str', 'value': 'transcode_decision', 'description': 'The transcode decision of the stream.'}, + {'name': 'Container Decision', 'type': 'str', 'value': 'container_decision', 'description': 'The container transcode decision of the stream.'}, + {'name': 'Video Decision', 'type': 'str', 'value': 'video_decision', 'description': 'The video transcode decision 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': '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.'}, diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 58f24921..28078275 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -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), 'initial_stream': notify_params['initial_stream'], 'transcode_decision': transcode_decision, + 'container_decision': notify_params['container_decision'], 'video_decision': notify_params['video_decision'], 'audio_decision': notify_params['audio_decision'], 'subtitle_decision': notify_params['subtitle_decision'], diff --git a/plexpy/pmsconnect.py b/plexpy/pmsconnect.py index 62b359b2..89216c50 100644 --- a/plexpy/pmsconnect.py +++ b/plexpy/pmsconnect.py @@ -2070,6 +2070,7 @@ class PmsConnect(object): transcode_decision = 'direct play' stream_details['transcode_decision'] = transcode_decision + stream_details['container_decision'] = stream_details['stream_container_decision'] # Override * in audio codecs if stream_details['stream_audio_codec'] == '*': diff --git a/plexpy/webserve.py b/plexpy/webserve.py index 47bb7912..263c3242 100644 --- a/plexpy/webserve.py +++ b/plexpy/webserve.py @@ -5397,6 +5397,7 @@ class WebInterface(object): "children_count": "", "collections": [], "container": "mkv", + "container_decision": "direct play", "content_rating": "TV-MA", "deleted_user": 0, "device": "Windows",