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());