mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-21 22:05:43 -04:00
Patch/updates (#887)
* Update HDBits internal logic * TMDb List validation * Add Trakt validation, update rest to implement IProviderConfig * Update wording
This commit is contained in:
@@ -1,11 +1,21 @@
|
||||
using NzbDrone.Core.Annotations;
|
||||
using FluentValidation;
|
||||
using NzbDrone.Core.Annotations;
|
||||
using NzbDrone.Core.ThingiProvider;
|
||||
using NzbDrone.Core.Validation;
|
||||
|
||||
namespace NzbDrone.Core.NetImport.RSSImport
|
||||
{
|
||||
|
||||
public class RSSImportSettings : NetImportBaseSettings
|
||||
public class RSSImportSettingsValidator : AbstractValidator<RSSImportSettings>
|
||||
{
|
||||
//private const string helpLink = "https://imdb.com";
|
||||
public RSSImportSettingsValidator()
|
||||
{
|
||||
RuleFor(c => c.Link).ValidRootUrl();
|
||||
}
|
||||
}
|
||||
|
||||
public class RSSImportSettings : IProviderConfig
|
||||
{
|
||||
private static readonly RSSImportSettingsValidator Validator = new RSSImportSettingsValidator();
|
||||
|
||||
public RSSImportSettings()
|
||||
{
|
||||
@@ -13,6 +23,11 @@ namespace NzbDrone.Core.NetImport.RSSImport
|
||||
}
|
||||
|
||||
[FieldDefinition(0, Label = "RSS Link", HelpText = "Link to the rss feed of movies.")]
|
||||
public new string Link { get; set; }
|
||||
public string Link { get; set; }
|
||||
|
||||
public NzbDroneValidationResult Validate()
|
||||
{
|
||||
return new NzbDroneValidationResult(Validator.Validate(this));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user