Bugfix. Audible changed how they handle categories, causing a new bug. Temp fix to get everything working again
This commit is contained in:
parent
f28a729d36
commit
53f252e56f
3 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue