From 329632808babd932483992e6ac0e680c77b4e519 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Mon, 17 Oct 2022 20:25:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=87=8D=E5=AE=9A=E5=90=91m3?= =?UTF-8?q?u8=E7=9B=B4=E6=92=AD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs b/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs index 66cae0d..97b8f53 100644 --- a/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs +++ b/src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs @@ -525,6 +525,11 @@ namespace N_m3u8DL_RE.Parser.Extractor } } } + else if (lists.Count == 1 && ParserConfig.OriginalUrl != lists[0].Url) + { + //单m3u8, 但是发生了重定向, 则应从原始URL开始解析 + lists[0].Url = ParserConfig.OriginalUrl; + } for (int i = 0; i < lists.Count; i++) {