修正返回空列表的BUG

This commit is contained in:
nilaoda 2022-12-06 23:38:48 +08:00
parent b705f405e9
commit 771f842e20
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ namespace N_m3u8DL_RE.Util
public static List<StreamSpec> DoFilterDrop(IEnumerable<StreamSpec> lists, StreamFilter? filter) public static List<StreamSpec> DoFilterDrop(IEnumerable<StreamSpec> lists, StreamFilter? filter)
{ {
if (filter == null) return new List<StreamSpec>(); if (filter == null) return new List<StreamSpec>(lists);
var inputs = lists.Where(_ => true); var inputs = lists.Where(_ => true);
var selected = DoFilterKeep(lists, filter); var selected = DoFilterKeep(lists, filter);