New: Ability to set minimum seeders on a per indexer basis

This commit is contained in:
Qstick
2017-10-25 22:30:31 -04:00
parent 28d5fbe409
commit 5bee842b26
14 changed files with 116 additions and 55 deletions
@@ -1,7 +1,6 @@
using System.Text.RegularExpressions;
using FluentValidation;
using NzbDrone.Core.Annotations;
using NzbDrone.Core.ThingiProvider;
using NzbDrone.Core.Validation;
namespace NzbDrone.Core.Indexers.Waffles
@@ -16,13 +15,14 @@ namespace NzbDrone.Core.Indexers.Waffles
}
}
public class WafflesSettings : IIndexerSettings
public class WafflesSettings : ITorrentIndexerSettings
{
private static readonly WafflesSettingsValidator Validator = new WafflesSettingsValidator();
public WafflesSettings()
{
BaseUrl = "https://www.waffles.ch";
MinimumSeeders = IndexerDefaults.MINIMUM_SEEDERS;
}
[FieldDefinition(0, Label = "Website URL")]
@@ -34,6 +34,9 @@ namespace NzbDrone.Core.Indexers.Waffles
[FieldDefinition(2, Label = "RSS Passkey")]
public string RssPasskey { get; set; }
[FieldDefinition(3, Type = FieldType.Textbox, Label = "Minimum Seeders", HelpText = "Minimum number of seeders required.", Advanced = true)]
public int MinimumSeeders { get; set; }
public NzbDroneValidationResult Validate()
{