mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
indexer specific setting validation
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using FluentValidation;
|
||||
using FluentValidation.Results;
|
||||
using NzbDrone.Core.Annotations;
|
||||
using NzbDrone.Core.Validation;
|
||||
|
||||
namespace NzbDrone.Core.Indexers.Newznab
|
||||
{
|
||||
@@ -8,7 +11,8 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||
{
|
||||
public NewznabSettings()
|
||||
{
|
||||
Categories = new [] { 5030, 5040 };
|
||||
Categories = new[] { 5030, 5040 };
|
||||
//RuleFor(c => c.Url).ValidRootUrl();
|
||||
}
|
||||
|
||||
[FieldDefinition(0, Label = "URL")]
|
||||
@@ -26,5 +30,11 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||
return !string.IsNullOrWhiteSpace(Url);
|
||||
}
|
||||
}
|
||||
|
||||
public ValidationResult Validate()
|
||||
{
|
||||
return new ValidationResult();
|
||||
//return Validate(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user