mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-24 18:05:07 +00:00
fix(naming): tag HDR10+ from the track range when MediaInfo misses it
This commit is contained in:
@@ -13,7 +13,7 @@ from unshackle.core.constants import (
|
||||
SPACED_AUDIO_CODECS,
|
||||
VIDEO_CODEC_MAP,
|
||||
)
|
||||
from unshackle.core.tracks import Tracks
|
||||
from unshackle.core.tracks import Tracks, Video
|
||||
from unshackle.core.utilities import spoken_language
|
||||
|
||||
|
||||
@@ -167,6 +167,8 @@ class Title:
|
||||
context["hdr"] = "HDR"
|
||||
else:
|
||||
context["hdr"] = DYNAMIC_RANGE_MAP.get(hdr_format, "")
|
||||
if context["hdr"] == "HDR" and any(v.range == Video.Range.HDR10P for v in self.tracks.videos[:1]):
|
||||
context["hdr"] = DYNAMIC_RANGE_MAP["HDR10+"]
|
||||
elif trc and "HLG" in trc:
|
||||
context["hdr"] = "HLG"
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user