From 993821431055f2455a12c6b4713a2a5cc9aeba85 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Wed, 22 Jun 2022 23:02:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=87=A0=E7=A7=8D=E5=8A=A0?= =?UTF-8?q?=E5=AF=86=E6=96=B9=E5=BC=8F=E7=9A=84=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE.Common/Enum/EncryptMethod.cs | 2 ++ src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs | 4 ++++ 2 files changed, 6 insertions(+) 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));