mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-21 04:10:52 +02:00
Fixed: (IPTorrent) Cookie not used on grabs
This commit is contained in:
parent
d6d418f7b3
commit
c61c3a9c45
1 changed files with 5 additions and 5 deletions
|
|
@ -42,6 +42,11 @@ public override IParseIndexerResponse GetParser()
|
|||
return new IPTorrentsParser(Settings, Capabilities.Categories, BaseUrl);
|
||||
}
|
||||
|
||||
protected override IDictionary<string, string> GetCookies()
|
||||
{
|
||||
return CookieUtil.CookieHeaderToDictionary(Settings.Cookie);
|
||||
}
|
||||
|
||||
private IndexerCapabilities SetCapabilities()
|
||||
{
|
||||
var caps = new IndexerCapabilities
|
||||
|
|
@ -173,11 +178,6 @@ private IEnumerable<IndexerRequest> GetPagedRequests(string term, int[] categori
|
|||
|
||||
var request = new IndexerRequest(searchUrl, HttpAccept.Html);
|
||||
|
||||
foreach (var cookie in CookieUtil.CookieHeaderToDictionary(Settings.Cookie))
|
||||
{
|
||||
request.HttpRequest.Cookies.Add(cookie.Key, cookie.Value);
|
||||
}
|
||||
|
||||
yield return request;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue