修正ShakaPackager枚举值

This commit is contained in:
nilaoda 2024-11-29 00:48:01 +08:00
parent 9752df8aae
commit 09d9f0e320
3 changed files with 3 additions and 3 deletions

View File

@ -274,7 +274,7 @@ internal class MyOption
public DecryptEngine GetDecryptEngine() public DecryptEngine GetDecryptEngine()
{ {
if (UseShakaPackager) if (UseShakaPackager)
return DecryptEngine.SHAKA_PACKAGE; return DecryptEngine.SHAKA_PACKAGER;
if (UseMp4Decrypt) if (UseMp4Decrypt)
return DecryptEngine.MP4DECRYPT; return DecryptEngine.MP4DECRYPT;
return DecryptEngine.FFMPEG; return DecryptEngine.FFMPEG;

View File

@ -3,6 +3,6 @@ namespace N_m3u8DL_RE.Enum;
internal enum DecryptEngine internal enum DecryptEngine
{ {
MP4DECRYPT, MP4DECRYPT,
SHAKA_PACKAGE, SHAKA_PACKAGER,
FFMPEG, FFMPEG,
} }

View File

@ -51,7 +51,7 @@ internal static class MP4DecryptUtil
string cmd; string cmd;
var tmpFile = ""; var tmpFile = "";
if (decryptEngine == DecryptEngine.SHAKA_PACKAGE) if (decryptEngine == DecryptEngine.SHAKA_PACKAGER)
{ {
var enc = source; var enc = source;
// shakaPackager 手动构造文件 // shakaPackager 手动构造文件