Bugfix. Audible changed how they handle categories, causing a new bug. Temp fix to get everything working again

This commit is contained in:
Robert McRackan 2020-05-26 14:38:29 -04:00
parent f28a729d36
commit 53f252e56f
3 changed files with 5 additions and 4 deletions

View file

@ -51,9 +51,6 @@ namespace InternalUtilities
if (distinct.Any(s => s.CategoryName is null))
exceptions.Add(new ArgumentException($"Collection contains {nameof(Item.Categories)} with null {nameof(Ladder.CategoryName)}", nameof(items)));
if (items.GetCategoryPairsDistinct().Any(p => p.Length > 2))
exceptions.Add(new ArgumentException($"Collection contains {nameof(Item.Categories)} with wrong number of categories. Expecting 0, 1, or 2 categories per title", nameof(items)));
return exceptions;
}
}