From e5fec9906cd7f36aa373067a490a9d8d4bf49c96 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Wed, 7 Sep 2022 01:23:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E4=BB=8E=E7=BB=9D=E5=AF=B9?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E6=96=87=E4=BB=B6=E8=AF=BB=E5=8F=96KEY?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Processor/HLS/DefaultHLSKeyProcessor.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/N_m3u8DL-RE.Parser/Processor/HLS/DefaultHLSKeyProcessor.cs b/src/N_m3u8DL-RE.Parser/Processor/HLS/DefaultHLSKeyProcessor.cs index 989fed7..e3f8c8d 100644 --- a/src/N_m3u8DL-RE.Parser/Processor/HLS/DefaultHLSKeyProcessor.cs +++ b/src/N_m3u8DL-RE.Parser/Processor/HLS/DefaultHLSKeyProcessor.cs @@ -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);