Skip to content

Commit

Permalink
优化重定向m3u8直播逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaoda committed Oct 17, 2022
1 parent 9ba9ca7 commit 3296328
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/N_m3u8DL-RE.Parser/Extractor/HLSExtractor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,11 @@ public async Task FetchPlayListAsync(List<StreamSpec> lists)
}
}
}
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++)
{
Expand Down

0 comments on commit 3296328

Please sign in to comment.