|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
using FluentValidation;
|
|
|
|
using FluentValidation;
|
|
|
@ -10,10 +11,7 @@ namespace NzbDrone.Core.Indexers.Torznab
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public class TorznabSettingsValidator : AbstractValidator<TorznabSettings>
|
|
|
|
public class TorznabSettingsValidator : AbstractValidator<TorznabSettings>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private static readonly string[] ApiKeyWhiteList =
|
|
|
|
private static readonly string[] ApiKeyWhiteList = Array.Empty<string>();
|
|
|
|
{
|
|
|
|
|
|
|
|
"hd4free.xyz",
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static bool ShouldHaveApiKey(TorznabSettings settings)
|
|
|
|
private static bool ShouldHaveApiKey(TorznabSettings settings)
|
|
|
|
{
|
|
|
|
{
|
|
|
|