优化加载playlist逻辑 fix #23

This commit is contained in:
nilaoda 2022-09-17 09:44:34 +08:00
parent aee8356660
commit 78a07e20ce
1 changed files with 2 additions and 2 deletions

View File

@ -246,8 +246,8 @@ namespace N_m3u8DL_RE
if (!selectedStreams.Any()) if (!selectedStreams.Any())
throw new Exception(ResString.noStreamsToDownload); throw new Exception(ResString.noStreamsToDownload);
//一个以上的话,需要手动重新加载playlist //选中流中若有没加载出playlist的加载playlist
if (lists.Count() > 1) if (selectedStreams.Any(s => s.Playlist == null))
await extractor.FetchPlayListAsync(selectedStreams); await extractor.FetchPlayListAsync(selectedStreams);
//无法识别的加密方式,自动开启二进制合并 //无法识别的加密方式,自动开启二进制合并