Merge pull request #69 from CodeName393/HDR-Vivid-File-Name-Processing

Fixed HDR Vivid showing the file name Range as 'None'
This commit is contained in:
Sp5rky
2026-02-04 12:24:24 -07:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -218,6 +218,8 @@ class Episode(Title):
for indicator in ["HDR10", "SMPTE ST 2086"]
):
name += " HDR"
elif "HDR Vivid" in hdr_format:
name += " HDR"
else:
name += f" {DYNAMIC_RANGE_MAP.get(hdr_format)} "
elif "HLG" in trc or "Hybrid Log-Gamma" in trc or "ARIB STD-B67" in trc or "arib-std-b67" in trc.lower():

View File

@@ -153,6 +153,8 @@ class Movie(Title):
for indicator in ["HDR10", "SMPTE ST 2086"]
):
name += " HDR"
elif "HDR Vivid" in hdr_format:
name += " HDR"
else:
name += f" {DYNAMIC_RANGE_MAP.get(hdr_format)} "
elif "HLG" in trc or "Hybrid Log-Gamma" in trc or "ARIB STD-B67" in trc or "arib-std-b67" in trc.lower():