Fixed: Broken Newznab testing.

This commit is contained in:
Leonardo Galli 2018-05-11 19:29:19 +02:00
parent 8dcde96f3f
commit 93ee849118

View file

@ -99,7 +99,8 @@ protected static List<int> CategoryIds(List<NewznabCategory> categories)
foreach (var category in categories)
{
l.AddRange(CategoryIds(category.Subcategories));
if (category.Subcategories != null)
l.AddRange(CategoryIds(category.Subcategories));
}
return l;