From a98bc45c102b95822b0ea63465b843690244f879 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Fri, 24 Jan 2020 20:14:48 -0800 Subject: [PATCH] Fix HDR for direct stream video --- plexpy/pmsconnect.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plexpy/pmsconnect.py b/plexpy/pmsconnect.py index f81f35e3..297bf2e8 100644 --- a/plexpy/pmsconnect.py +++ b/plexpy/pmsconnect.py @@ -1995,7 +1995,8 @@ class PmsConnect(object): else: stream_details['video_dynamic_range'] = 'SDR' - if helpers.cast_to_int(video_details['stream_video_bit_depth']) > 8 \ + if video_details['stream_video_decision'] != 'transcode' \ + or helpers.cast_to_int(video_details['stream_video_bit_depth']) > 8 \ and video_details['stream_video_color_space'] == 'bt2020nc': stream_details['stream_video_dynamic_range'] = 'HDR' else: