优化自定义加密方式的设置逻辑
This commit is contained in:
parent
87ff57ef58
commit
a44ade8264
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue