Fixed: Newznab book search type

pull/26/head
ta264 4 years ago
parent e81c6016a1
commit 34ff1edd00

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

Loading…
Cancel
Save