From 66d42ae645bb8990794e1a39d3b0e14164a79f81 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Tue, 25 Oct 2022 11:24:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9D=9C=E6=AF=94=E8=A7=86?= =?UTF-8?q?=E7=95=8CP8=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/Util/MediainfoUtil.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/N_m3u8DL-RE/Util/MediainfoUtil.cs b/src/N_m3u8DL-RE/Util/MediainfoUtil.cs index 66a29fa..9e645ee 100644 --- a/src/N_m3u8DL-RE/Util/MediainfoUtil.cs +++ b/src/N_m3u8DL-RE/Util/MediainfoUtil.cs @@ -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> 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;