Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/commit/0508dd2b663795b5329dacf096f8c66822e2008d You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fixed: (Cardigann) Sites that use POST search not sending form params

Fixes 
pull/387/head
Qstick 4 years ago
parent 026a503d5f
commit 0508dd2b66

@ -8,7 +8,13 @@ namespace NzbDrone.Core.Indexers.Cardigann
public Dictionary<string, object> Variables { get; private set; }
public CardigannRequest(string url, HttpAccept httpAccept, Dictionary<string, object> variables)
: base(url, httpAccept)
: base(url, httpAccept)
{
Variables = variables;
}
public CardigannRequest(HttpRequest httpRequest, Dictionary<string, object> variables)
: base(httpRequest)
{
Variables = variables;
}

@ -933,7 +933,20 @@ namespace NzbDrone.Core.Indexers.Cardigann
_logger.Info($"Adding request: {searchUrl}");
var request = new CardigannRequest(searchUrl, HttpAccept.Html, variables);
var requestbuilder = new HttpRequestBuilder(searchUrl);
requestbuilder.Method = method;
// Add FormData for searchs that POST
if (method == HttpMethod.POST)
{
foreach (var param in queryCollection)
{
requestbuilder.AddFormParameter(param.Key, param.Value);
}
}
var request = new CardigannRequest(requestbuilder.Build(), variables);
// send HTTP request
if (search.Headers != null)
@ -944,8 +957,6 @@ namespace NzbDrone.Core.Indexers.Cardigann
}
}
request.HttpRequest.Method = method;
yield return request;
}
}

Loading…
Cancel
Save