diff --git a/jellyfin_kodi/helper/api.py b/jellyfin_kodi/helper/api.py index 5ae68eda8..7ac839ad2 100644 --- a/jellyfin_kodi/helper/api.py +++ b/jellyfin_kodi/helper/api.py @@ -75,15 +75,10 @@ def video_streams(self, tracks, container=None): if "DvProfile" in track: track['hdrtype'] = "dolbyvision" - - elif track['VideoRangeType'] in ["HDR10", "HDR10Plus"]: + elif track.get('VideoRangeType', '') in ["HDR10", "HDR10Plus"]: track['hdrtype'] = "hdr10" - - elif "HLG" in track['VideoRangeType']: + elif "HLG" in track.get('VideoRangeType', ''): track['hdrtype'] = "hlg" - - elif track['VideoRangeType'] in ["SDR", "Unknown"]: - track['hdrtype'] = "" track.update({ 'hdrtype': track.get('hdrtype', "").lower(),