优化非master的加载逻辑
This commit is contained in:
parent
1aef2a7504
commit
8a8df11211
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue