diff --git a/src/N_m3u8DL-RE.Parser/Processor/HLS/DefaultHLSKeyProcessor.cs b/src/N_m3u8DL-RE.Parser/Processor/HLS/DefaultHLSKeyProcessor.cs index ad6e113..9f39e31 100644 --- a/src/N_m3u8DL-RE.Parser/Processor/HLS/DefaultHLSKeyProcessor.cs +++ b/src/N_m3u8DL-RE.Parser/Processor/HLS/DefaultHLSKeyProcessor.cs @@ -29,13 +29,6 @@ namespace N_m3u8DL_RE.Parser.Processor.HLS var encryptInfo = new EncryptInfo(method); - //处理自定义加密方式 - if (parserConfig.CustomMethod != null) - { - encryptInfo.Method = parserConfig.CustomMethod.Value; - Logger.Warn("METHOD changed to {}", method, encryptInfo.Method); - } - //IV if (!string.IsNullOrEmpty(iv)) { @@ -95,6 +88,13 @@ namespace N_m3u8DL_RE.Parser.Processor.HLS encryptInfo.Method = EncryptMethod.UNKNOWN; } + //处理自定义加密方式 + if (parserConfig.CustomMethod != null) + { + encryptInfo.Method = parserConfig.CustomMethod.Value; + Logger.Warn("METHOD changed to {}", method, encryptInfo.Method); + } + return encryptInfo; }