fix(titles): name a PQ video track without HDR10 metadata HDR

This commit is contained in:
imSp4rky
2026-10-31 21:42:11 -06:00
parent f9c1c3d390
commit 15e46d8bcc
3 changed files with 20 additions and 5 deletions
+2
View File
@@ -173,6 +173,8 @@ class Title:
context["hdr"] = DYNAMIC_RANGE_MAP["HDR10+"]
elif trc and "HLG" in trc:
context["hdr"] = "HLG"
elif trc and "PQ" in trc:
context["hdr"] = "HDR"
else:
context["hdr"] = ""
context["hdr"] = ".".join(filter(None, map(rename, context["hdr"].split("."))))