private int GetChannelCount(LiveTypeNode node, VideoNodeKey key, LiveFilter filter, List <Func <VideoBase, ExFilterBase, bool> > filters) { int count = 0; if (node.Channels.ContainsKey(key)) { var cs = node.Channels[key]; foreach (var c in cs) { var result = true; foreach (var f in filters) { result = result && f(LiveListCache.Instance.Dictionary[c], filter); } if (result) { count++; } } } return(count); }
private int GetChannelCount(LiveTypeNode node, VideoNodeKey key, LiveFilter filter, List<Func<VideoBase, ExFilterBase, bool>> filters) { int count = 0; if (node.Channels.ContainsKey(key)) { var cs = node.Channels[key]; foreach (var c in cs) { var result = true; foreach (var f in filters) { result = result && f(LiveListCache.Instance.Dictionary[c], filter); } if (result) count++; } } return count; }