New: Seed Settings Sync

This commit is contained in:
Qstick
2022-05-01 17:56:07 -05:00
parent af50a1d3a8
commit e90a796b27
29 changed files with 288 additions and 24 deletions
@@ -2,6 +2,7 @@ using System.Linq;
using System.Text.RegularExpressions;
using FluentValidation;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.Annotations;
using NzbDrone.Core.Indexers.Newznab;
using NzbDrone.Core.Validation;
@@ -36,7 +37,7 @@ namespace NzbDrone.Core.Indexers.Torznab
}
}
public class TorznabSettings : NewznabSettings
public class TorznabSettings : NewznabSettings, ITorrentIndexerSettings
{
private static readonly TorznabSettingsValidator Validator = new TorznabSettingsValidator();
@@ -44,6 +45,9 @@ namespace NzbDrone.Core.Indexers.Torznab
{
}
[FieldDefinition(3)]
public IndexerTorrentBaseSettings TorrentBaseSettings { get; set; } = new IndexerTorrentBaseSettings();
public override NzbDroneValidationResult Validate()
{
return new NzbDroneValidationResult(Validator.Validate(this));