Prevent query failures on Cardigann Indexers

pull/1126/head v0.4.6.1969
Qstick 2 years ago
parent f68915c5dd
commit d292d086ee

@ -163,7 +163,7 @@ namespace NzbDrone.Core.IndexerSearch
if (criteriaBase.Categories != null && criteriaBase.Categories.Length > 0)
{
//Only query supported indexers
indexers = indexers.Where(i => i.Capabilities.Categories.SupportedCategories(criteriaBase.Categories).Any()).ToList();
indexers = indexers.Where(i => ((IndexerDefinition)i.Definition).Capabilities.Categories.SupportedCategories(criteriaBase.Categories).Any()).ToList();
if (indexers.Count == 0)
{

Loading…
Cancel
Save