diff --git a/unshackle/core/titles/episode.py b/unshackle/core/titles/episode.py index 119409f..0d16e96 100644 --- a/unshackle/core/titles/episode.py +++ b/unshackle/core/titles/episode.py @@ -170,8 +170,9 @@ class Episode(Title): frame_rate = float(primary_video_track.frame_rate) if hdr_format: if (primary_video_track.hdr_format or "").startswith("Dolby Vision"): - if (primary_video_track.hdr_format_commercial) != "Dolby Vision": - name += f" DV {DYNAMIC_RANGE_MAP.get(hdr_format)} " + name += " DV" + if DYNAMIC_RANGE_MAP.get(hdr_format) and DYNAMIC_RANGE_MAP.get(hdr_format) != "DV": + name += " HDR" else: name += f" {DYNAMIC_RANGE_MAP.get(hdr_format)} " elif trc and "HLG" in trc: diff --git a/unshackle/core/titles/movie.py b/unshackle/core/titles/movie.py index 06a4a93..3d552d2 100644 --- a/unshackle/core/titles/movie.py +++ b/unshackle/core/titles/movie.py @@ -121,8 +121,9 @@ class Movie(Title): frame_rate = float(primary_video_track.frame_rate) if hdr_format: if (primary_video_track.hdr_format or "").startswith("Dolby Vision"): - if (primary_video_track.hdr_format_commercial) != "Dolby Vision": - name += f" DV {DYNAMIC_RANGE_MAP.get(hdr_format)} " + name += " DV" + if DYNAMIC_RANGE_MAP.get(hdr_format) and DYNAMIC_RANGE_MAP.get(hdr_format) != "DV": + name += " HDR" else: name += f" {DYNAMIC_RANGE_MAP.get(hdr_format)} " elif trc and "HLG" in trc: