Fixed: TorrentDay Grabs not using Cookie

This commit is contained in:
Qstick
2021-03-09 23:04:17 -05:00
parent a08c5229f3
commit 038800671f

View File

@@ -40,6 +40,11 @@ namespace NzbDrone.Core.Indexers.Definitions
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 @@ namespace NzbDrone.Core.Indexers.Definitions
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;
}