Skip to content

Commit

Permalink
兼容从绝对路径文件读取KEY
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaoda committed Sep 6, 2022
1 parent 2e31505 commit e1c89de
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ public override EncryptInfo Process(string keyLine, string m3u8Url, string m3u8C
{
encryptInfo.Key = Convert.FromBase64String(uri[23..]);
}
else if (File.Exists(uri))
{
encryptInfo.Key = File.ReadAllBytes(uri);
}
else if (!string.IsNullOrEmpty(uri))
{
var segUrl = PreProcessUrl(ParserUtil.CombineURL(m3u8Url, uri), parserConfig);
Expand Down

0 comments on commit e1c89de

Please sign in to comment.