From bc8b5a92a92aff870f3a081d43b452f31a4e01cd Mon Sep 17 00:00:00 2001 From: nilaoda Date: Sat, 30 Nov 2024 22:22:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=A4=9A=E4=BD=99=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/Program.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/N_m3u8DL-RE/Program.cs b/src/N_m3u8DL-RE/Program.cs index 3e8df15..5b2e046 100644 --- a/src/N_m3u8DL-RE/Program.cs +++ b/src/N_m3u8DL-RE/Program.cs @@ -115,11 +115,6 @@ internal class Program { option.DecryptionEngine = DecryptEngine.SHAKA_PACKAGER; } - - if (option is { UseShakaPackager: true, DecryptionEngine: not DecryptEngine.SHAKA_PACKAGER }) - { - throw new ArgumentException("UseShakaPackager and Mp4DecryptEngine not match!"); - } // LivePipeMux开启时 LiveRealTimeMerge必须开启 if (option is { LivePipeMux: true, LiveRealTimeMerge: false }) @@ -139,7 +134,7 @@ internal class Program Logger.Extra($"ffmpeg => {option.FFmpegBinaryPath}"); // 预先检查mkvmerge - if (option.MuxOptions != null && option.MuxOptions.UseMkvmerge && option.MuxAfterDone) + if (option is { MuxOptions.UseMkvmerge: true, MuxAfterDone: true }) { option.MkvmergeBinaryPath ??= GlobalUtil.FindExecutable("mkvmerge"); if (string.IsNullOrEmpty(option.MkvmergeBinaryPath) || !File.Exists(option.MkvmergeBinaryPath))