Skip to content

Commit

Permalink
去除多余判断
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaoda committed Nov 30, 2024
1 parent 7463915 commit bc8b5a9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/N_m3u8DL-RE/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,6 @@ static async Task DoWorkAsync(MyOption option)
{
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 })
Expand All @@ -139,7 +134,7 @@ static async Task DoWorkAsync(MyOption option)
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))
Expand Down

0 comments on commit bc8b5a9

Please sign in to comment.