优化非master的加载逻辑

This commit is contained in:
nilaoda 2022-07-05 23:01:02 +08:00
parent 1aef2a7504
commit 8a8df11211
1 changed files with 3 additions and 2 deletions

View File

@ -79,7 +79,8 @@ namespace N_m3u8DL_RE
//展示交互式选择框 //展示交互式选择框
var selectedStreams = PromptUtil.SelectStreams(lists); var selectedStreams = PromptUtil.SelectStreams(lists);
//加载playlist //一个以上的话需要手动重新加载playlist
if (selectedStreams.Count() > 1)
await extractor.FetchPlayListAsync(selectedStreams); await extractor.FetchPlayListAsync(selectedStreams);
Logger.Warn(ResString.writeJson); Logger.Warn(ResString.writeJson);
await File.WriteAllTextAsync("meta_selected.json", GlobalUtil.ConvertToJson(selectedStreams), Encoding.UTF8); await File.WriteAllTextAsync("meta_selected.json", GlobalUtil.ConvertToJson(selectedStreams), Encoding.UTF8);