优化提示信息
This commit is contained in:
parent
df354e4eb8
commit
1a4b4487c6
|
@ -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"))
|
||||
|
|
|
@ -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]][/]" : "") + "[/]";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue