补充几种加密方式的识别

This commit is contained in:
nilaoda 2022-06-22 23:02:07 +08:00
parent 5404b56c40
commit 9938214310
2 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,8 @@ namespace N_m3u8DL_RE.Common.Enum
AES_128,
AES_128_ECB,
SAMPLE_AES,
SAMPLE_AES_CTR,
CHACHA20,
UNKNOWN
}
}

View File

@ -481,6 +481,10 @@ namespace N_m3u8DL_RE.Parser.Extractor
{
return Convert.FromBase64String(uri.Substring(7));
}
else if (uri.ToLower().StartsWith("data:text/plain;base64,"))
{
return Convert.FromBase64String(uri.Substring(23));
}
else
{
var segUrl = PreProcessUrl(ParserUtil.CombineURL(BaseUrl, uri));