Skip to content

Commit

Permalink
修正自定义KEY切存在IV时的隐患
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaoda committed Feb 1, 2021
1 parent 1b387a0 commit 4ead563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions N_m3u8DL-CLI/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ public void Parse()
{
if (m3u8CurrentKey[2] == "" && line.Contains("IV=0x"))
{
var temp = ParseKey(line);
m3u8CurrentKey[2] = temp[2]; //使用m3u8中的IV
var temp = Global.GetTagAttribute(line.Replace(HLSTags.ext_x_key + ":", ""), "IV");
m3u8CurrentKey[2] = temp; //使用m3u8中的IV
}
}
else
Expand Down

0 comments on commit 4ead563

Please sign in to comment.