优化重定向m3u8直播逻辑

This commit is contained in:
nilaoda 2022-10-17 20:25:47 +08:00
parent 9ba9ca706d
commit 329632808b
1 changed files with 5 additions and 0 deletions

View File

@ -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++) for (int i = 0; i < lists.Count; i++)
{ {