diff --git a/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs b/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs index dc77935..ab69db4 100644 --- a/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs +++ b/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs @@ -40,7 +40,7 @@ namespace N_m3u8DL_RE.DownloadManager if (!DownloaderConfig.BinaryMerge && mediainfos.Any(m => m.DolbyVison == true)) { DownloaderConfig.BinaryMerge = true; - Logger.WarnMarkUp(ResString.autoBinaryMerge2); + Logger.WarnMarkUp($"[darkorange3_1]{ResString.autoBinaryMerge2}[/]"); } if (mediainfos.All(m => m.Type == "Audio")) diff --git a/src/N_m3u8DL-RE/Entity/Mediainfo.cs b/src/N_m3u8DL-RE/Entity/Mediainfo.cs index 6cf34c9..c3daa6b 100644 --- a/src/N_m3u8DL-RE/Entity/Mediainfo.cs +++ b/src/N_m3u8DL-RE/Entity/Mediainfo.cs @@ -17,6 +17,7 @@ namespace N_m3u8DL_RE.Entity public string Fps { get; set; } public string Type { get; set; } public bool DolbyVison { get; set; } + public bool HDR { get; set; } public override string? ToString() { @@ -25,7 +26,7 @@ namespace N_m3u8DL_RE.Entity public string ToStringMarkUp() { - return "[steelblue]" + ToString().EscapeMarkup() + (DolbyVison ? " [darkorange3_1][[DOVI]][/]" : "") + "[/]"; + return "[steelblue]" + ToString().EscapeMarkup() + ((HDR && !DolbyVison) ? " [darkorange3_1][[HDR]][/]" : "") + (DolbyVison ? " [darkorange3_1][[DOVI]][/]" : "") + "[/]"; } } } diff --git a/src/N_m3u8DL-RE/Util/MediainfoUtil.cs b/src/N_m3u8DL-RE/Util/MediainfoUtil.cs index 62c27fc..36d5f7c 100644 --- a/src/N_m3u8DL-RE/Util/MediainfoUtil.cs +++ b/src/N_m3u8DL-RE/Util/MediainfoUtil.cs @@ -61,6 +61,7 @@ namespace N_m3u8DL_RE.Util info.Fps = FpsRegex().Match(info.Text).Value; info.BaseInfo = BaseInfoRegex().Match(info.Text).Groups[1].Value; info.BaseInfo = ReplaceRegex().Replace(info.BaseInfo, ""); + info.HDR = info.Text.Contains("/bt2020/"); if (info.BaseInfo.Contains("dvhe") || info.BaseInfo.Contains("dvh1")