mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Removed validation from OmgwtfnzbSettings
This commit is contained in:
parent
d7b0183457
commit
ae590828da
@ -3,7 +3,7 @@
|
||||
|
||||
namespace NzbDrone.Core.Indexers.Omgwtfnzbs
|
||||
{
|
||||
public class Omgwtfnzbs : IndexerWithSetting<OmgwtfnzbsSetting>
|
||||
public class Omgwtfnzbs : IndexerWithSetting<OmgwtfnzbsSettings>
|
||||
{
|
||||
public override string Name
|
||||
{
|
||||
|
@ -1,17 +1,18 @@
|
||||
using System;
|
||||
using FluentValidation;
|
||||
using FluentValidation.Results;
|
||||
using Newtonsoft.Json;
|
||||
using NzbDrone.Core.Annotations;
|
||||
|
||||
namespace NzbDrone.Core.Indexers.Omgwtfnzbs
|
||||
{
|
||||
public class OmgwtfnzbsSetting : AbstractValidator<OmgwtfnzbsSetting>, IIndexerSetting
|
||||
public class OmgwtfnzbsSettings : IIndexerSetting
|
||||
{
|
||||
public OmgwtfnzbsSetting()
|
||||
{
|
||||
RuleFor(c => c.Username).NotEmpty();
|
||||
RuleFor(c => c.ApiKey).NotEmpty();
|
||||
}
|
||||
// public OmgwtfnzbsSettings()
|
||||
// {
|
||||
// RuleFor(c => c.Username).NotEmpty();
|
||||
// RuleFor(c => c.ApiKey).NotEmpty();
|
||||
// }
|
||||
|
||||
[FieldDefinition(0, Label = "Username")]
|
||||
public String Username { get; set; }
|
||||
@ -19,10 +20,10 @@ public OmgwtfnzbsSetting()
|
||||
[FieldDefinition(1, Label = "API Key")]
|
||||
public String ApiKey { get; set; }
|
||||
|
||||
|
||||
public ValidationResult Validate()
|
||||
{
|
||||
return Validate(this);
|
||||
return new ValidationResult();
|
||||
//return Validate(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user