兼容从绝对路径文件读取KEY

This commit is contained in:
nilaoda 2022-09-07 01:23:42 +08:00
parent d9f72e51e1
commit e5fec9906c
1 changed files with 4 additions and 0 deletions

View File

@ -48,6 +48,10 @@ namespace N_m3u8DL_RE.Parser.Processor.HLS
{
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);