Fixed: (RuTracker.Org) Fails to add

Closes #560
This commit is contained in:
bakerboy448 2021-11-07 14:05:11 -06:00 committed by Qstick
parent 6a6697c2c2
commit d585ab5677

View file

@ -1443,7 +1443,7 @@ private IEnumerable<IndexerRequest> GetPagedRequests(string term, int[] categori
queryCollection.Add("nm", searchString);
}
if (categories.Length > 0)
if (categories != null && categories.Length > 0)
{
queryCollection.Add("f", string.Join(",", Capabilities.Categories.MapTorznabCapsToTrackers(categories)));
}