Fixed: DigitalCore Arr grabs not using Cookie

pull/25/head
Qstick 4 years ago
parent 038800671f
commit b41c911092

@ -40,6 +40,16 @@ namespace NzbDrone.Core.Indexers.Definitions
return new DigitalCoreParser(Settings, Capabilities.Categories, BaseUrl);
}
protected override IDictionary<string, string> GetCookies()
{
var cookies = new Dictionary<string, string>();
cookies.Add("uid", Settings.UId);
cookies.Add("pass", Settings.Passphrase);
return cookies;
}
private IndexerCapabilities SetCapabilities()
{
var caps = new IndexerCapabilities
@ -147,9 +157,7 @@ namespace NzbDrone.Core.Indexers.Definitions
searchUrl += "&categories[]=" + cat;
}
var request = new IndexerRequest(searchUrl, HttpAccept.Rss);
request.HttpRequest.Cookies.Add("uid", Settings.UId);
request.HttpRequest.Cookies.Add("pass", Settings.Passphrase);
var request = new IndexerRequest(searchUrl, HttpAccept.Json);
yield return request;
}

Loading…
Cancel
Save