From 34ff1edd000f660ab76c1f1f889d293f1dffeb22 Mon Sep 17 00:00:00 2001 From: ta264 Date: Mon, 15 Mar 2021 21:15:55 +0000 Subject: [PATCH] Fixed: Newznab book search type --- .../Definitions/Cardigann/CardigannRequestGenerator.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs index 1999ba53e..cd98c168c 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannRequestGenerator.cs @@ -96,8 +96,8 @@ namespace NzbDrone.Core.Indexers.Cardigann var variables = GetQueryVariableDefaults(searchCriteria); - variables[".Query.Author"] = null; - variables[".Query.Title"] = null; + variables[".Query.Author"] = searchCriteria.Author; + variables[".Query.Title"] = searchCriteria.Title; pageableRequests.Add(GetRequest(variables)); @@ -183,6 +183,11 @@ namespace NzbDrone.Core.Indexers.Cardigann SuppressHttpError = true }; + foreach (var pair in pairs) + { + requestBuilder.AddFormParameter(pair.Key, pair.Value); + } + requestBuilder.Headers.Add("Referer", SiteLink); var response = HttpClient.Execute(requestBuilder.Build());