优化杜比视界P8识别

This commit is contained in:
nilaoda 2022-10-25 11:24:45 +08:00
parent d90f7bc041
commit 66d42ae645
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,8 @@ namespace N_m3u8DL_RE.Util
private static partial Regex BitrateRegex();
[GeneratedRegex("(\\d+(\\.\\d+)?) fps")]
private static partial Regex FpsRegex();
[GeneratedRegex("DOVI configuration record.*profile: (\\d).*compatibility id: (\\d)")]
private static partial Regex DoViRegex();
public static async Task<List<Mediainfo>> ReadInfoAsync(string binary, string file)
{
@ -67,6 +69,7 @@ namespace N_m3u8DL_RE.Util
|| info.BaseInfo.Contains("dvh1")
|| info.BaseInfo.Contains("DOVI")
|| info.Type.Contains("dvvideo")
|| DoViRegex().IsMatch(output)
)
info.DolbyVison = true;