Use media stream info for transcode decision (Fixes Tautulli/Tautulli-Issues#24)

This commit is contained in:
JonnyWong16 2018-03-14 19:45:47 -07:00
parent 5af1294f71
commit 8acdb5af83
2 changed files with 14 additions and 12 deletions

View file

@ -507,9 +507,9 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
user_stream_count = len(user_sessions)
# Generate a combined transcode decision value
if session.get('video_decision','') == 'transcode' or session.get('audio_decision','') == 'transcode':
if session.get('stream_video_decision', '') == 'transcode' or session.get('stream_audio_decision', '') == 'transcode':
transcode_decision = 'Transcode'
elif session.get('video_decision','') == 'copy' or session.get('audio_decision','') == 'copy':
elif session.get('stream_video_decision', '') == 'copy' or session.get('stream_audio_decision', '') == 'copy':
transcode_decision = 'Direct Stream'
else:
transcode_decision = 'Direct Play'