diff --git a/src/N_m3u8DL-RE.Common/Enum/EncryptMethod.cs b/src/N_m3u8DL-RE.Common/Enum/EncryptMethod.cs index 77bc442..9dc0789 100644 --- a/src/N_m3u8DL-RE.Common/Enum/EncryptMethod.cs +++ b/src/N_m3u8DL-RE.Common/Enum/EncryptMethod.cs @@ -12,6 +12,8 @@ namespace N_m3u8DL_RE.Common.Enum AES_128, AES_128_ECB, SAMPLE_AES, + SAMPLE_AES_CTR, + CHACHA20, UNKNOWN } } diff --git a/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs b/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs index c522fb5..981921b 100644 --- a/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs +++ b/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs @@ -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));