From 3b7b72d4e1439b91470e08335172ab54a8228cfe Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 5 Dec 2021 17:42:40 -0600 Subject: [PATCH] Fixed: (Cardigann) Always use search headers for download if defined --- .../Definitions/Cardigann/CardigannRequestGenerator.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs index 5c1d631b4..1bd0a6c76 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs @@ -727,14 +727,14 @@ namespace NzbDrone.Core.Indexers.Cardigann var method = HttpMethod.GET; var headers = new Dictionary(); + var variables = GetBaseTemplateVariables(); + AddTemplateVariablesFromUri(variables, link, ".DownloadUri"); + headers = ParseCustomHeaders(_definition.Search?.Headers, variables); + if (_definition.Download != null) { var download = _definition.Download; - var variables = GetBaseTemplateVariables(); - - AddTemplateVariablesFromUri(variables, link, ".DownloadUri"); - headers = ParseCustomHeaders(_definition.Search?.Headers, variables); HttpResponse response = null; var request = new HttpRequestBuilder(link.ToString())