From 4659cb706add2e79b1c60652e4da69be9d24bca7 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 27 Dec 2024 22:37:43 +0200 Subject: [PATCH] Fixed: (Knaben) Update base url Co-authored-by: garfield69 --- src/NzbDrone.Core/Indexers/Definitions/Knaben.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/Knaben.cs b/src/NzbDrone.Core/Indexers/Definitions/Knaben.cs index 3e8ca3294..286ef1a1a 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Knaben.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Knaben.cs @@ -23,7 +23,8 @@ namespace NzbDrone.Core.Indexers.Definitions public class Knaben : TorrentIndexerBase { public override string Name => "Knaben"; - public override string[] IndexerUrls => new[] { "https://knaben.eu/" }; + public override string[] IndexerUrls => new[] { "https://knaben.org/" }; + public override string[] LegacyUrls => new[] { "https://knaben.eu/" }; public override string Description => "Knaben is a Public torrent meta-search engine"; public override IndexerPrivacy Privacy => IndexerPrivacy.Public; public override IndexerCapabilities Capabilities => SetCapabilities(); @@ -145,7 +146,7 @@ namespace NzbDrone.Core.Indexers.Definitions public class KnabenRequestGenerator : IIndexerRequestGenerator { - private const string API_SEARCH_ENDPOINT = "https://api.knaben.eu/v1"; + private const string ApiSearchEndpoint = "https://api.knaben.org/v1"; private readonly IndexerCapabilities _capabilities; @@ -226,7 +227,7 @@ namespace NzbDrone.Core.Indexers.Definitions body.Add("categories", categories.Select(int.Parse).Distinct().ToArray()); } - var request = new HttpRequest(API_SEARCH_ENDPOINT, HttpAccept.Json) + var request = new HttpRequest(ApiSearchEndpoint, HttpAccept.Json) { Headers = {