From a44ade8264e2d5d4810d56cc36f33ceb7eb4cfed Mon Sep 17 00:00:00 2001 From: nilaoda Date: Mon, 24 Oct 2022 20:06:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=8A=A0=E5=AF=86=E6=96=B9=E5=BC=8F=E7=9A=84=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Processor/HLS/DefaultHLSKeyProcessor.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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; }