mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-19 03:10:50 +02:00
Fixed: TorrentDay Grabs not using Cookie
This commit is contained in:
parent
a08c5229f3
commit
038800671f
1 changed files with 5 additions and 5 deletions
|
|
@ -40,6 +40,11 @@ public override IParseIndexerResponse GetParser()
|
|||
return new TorrentDayParser(Settings, Capabilities.Categories, BaseUrl);
|
||||
}
|
||||
|
||||
protected override IDictionary<string, string> GetCookies()
|
||||
{
|
||||
return CookieUtil.CookieHeaderToDictionary(Settings.Cookie);
|
||||
}
|
||||
|
||||
private IndexerCapabilities SetCapabilities()
|
||||
{
|
||||
var caps = new IndexerCapabilities
|
||||
|
|
@ -148,11 +153,6 @@ private IEnumerable<IndexerRequest> GetPagedRequests(string term, int[] categori
|
|||
|
||||
var request = new IndexerRequest(searchUrl, HttpAccept.Rss);
|
||||
|
||||
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