indexers implementation is now separated from settings/definition

so we can have multiple newznab definitions.
This commit is contained in:
Keivan Beigi 2013-05-01 18:59:09 -07:00
parent 50fd2f77b1
commit 96990eabb3
28 changed files with 270 additions and 345 deletions

View file

@ -109,9 +109,9 @@ namespace NzbDrone.Core.IndexerSearch
return spec;
}
private List<DownloadDecision> Dispatch(Func<IIndexerBase, IEnumerable<ReportInfo>> searchAction, SearchDefinitionBase definitionBase)
private List<DownloadDecision> Dispatch(Func<IIndexer, IEnumerable<ReportInfo>> searchAction, SearchDefinitionBase definitionBase)
{
var indexers = _indexerService.GetAvailableIndexers();
var indexers = _indexerService.GetAvailableIndexers().ToList();
var reports = new List<ReportInfo>();
Parallel.ForEach(indexers, indexer =>