Remove dead Torznab presets

pull/6339/head
ilike2burnthing 1 year ago committed by GitHub
parent 21666df8f1
commit 3454f1c9ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -49,9 +49,7 @@ namespace NzbDrone.Core.Indexers.Torznab
{ {
get get
{ {
yield return GetDefinition("HD4Free.xyz", GetSettings("http://hd4free.xyz"));
yield return GetDefinition("AnimeTosho Torrents", GetSettings("https://feed.animetosho.org", apiPath: @"/nabapi", categories: Array.Empty<int>(), animeCategories: new[] { 5070 })); yield return GetDefinition("AnimeTosho Torrents", GetSettings("https://feed.animetosho.org", apiPath: @"/nabapi", categories: Array.Empty<int>(), animeCategories: new[] { 5070 }));
yield return GetDefinition("Nyaa Pantsu", GetSettings("https://nyaa.pantsu.cat", apiPath: @"/feed/torznab", categories: Array.Empty<int>(), animeCategories: new[] { 5070 }));
} }
} }

@ -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)
{ {

Loading…
Cancel
Save