1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-26 22:46:53 -04:00

New: Convert to New CSProj Format

Co-Authored-By: taloth <taloth@users.noreply.github.com>
This commit is contained in:
Qstick
2019-09-02 16:27:49 -04:00
parent a3525252b7
commit b89c7b8675
166 changed files with 943 additions and 7946 deletions
@@ -38,14 +38,12 @@ namespace NzbDrone.Core.Indexers.Newznab
public NewznabSettingsValidator()
{
Custom(newznab =>
RuleFor(c => c).Custom((c, context) =>
{
if (newznab.Categories.Empty() && newznab.AnimeCategories.Empty())
if (c.Categories.Empty() && c.AnimeCategories.Empty())
{
return new ValidationFailure("", "Either 'Categories' or 'Anime Categories' must be provided");
context.AddFailure("Either 'Categories' or 'Anime Categories' must be provided");
}
return null;
});
RuleFor(c => c.BaseUrl).ValidRootUrl();