优化IV获取
This commit is contained in:
parent
eb0a1d12dd
commit
301f979e07
|
@ -297,9 +297,11 @@ namespace N_m3u8DL_RE.Parser.Extractor
|
||||||
//解析KEY
|
//解析KEY
|
||||||
else if (line.StartsWith(HLSTags.ext_x_key))
|
else if (line.StartsWith(HLSTags.ext_x_key))
|
||||||
{
|
{
|
||||||
//自定义KEY情况 不读取当前行的KEY信息 但是没自定义当前行有IV的话 就用
|
//自定义KEY情况 不读取当前行的KEY信息.
|
||||||
if (ParserConfig.CustomeKey != null && ParserConfig.CustomeIV == null && line.Contains("IV=0x"))
|
//对于IV,没自定义且当前行有IV的话 就用
|
||||||
|
if (ParserConfig.CustomeKey != null)
|
||||||
{
|
{
|
||||||
|
if (ParserConfig.CustomeIV == null && line.Contains("IV=0x"))
|
||||||
currentEncryptInfo.IV = HexUtil.HexToBytes(ParserUtil.GetAttribute(line, "IV"));
|
currentEncryptInfo.IV = HexUtil.HexToBytes(ParserUtil.GetAttribute(line, "IV"));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue