Fixed: (SuperBits) Use Cookie for grabs

pull/82/head
Qstick 4 years ago
parent f4346c35c2
commit 6ae9254678

@ -43,6 +43,11 @@ namespace NzbDrone.Core.Indexers.Definitions
return new SuperBitsParser(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
request.HttpRequest.Headers.Add("Referer", BaseUrl);
foreach (var cookie in CookieUtil.CookieHeaderToDictionary(Settings.Cookie))
{
request.HttpRequest.Cookies.Add(cookie.Key, cookie.Value);
}
yield return request;
}

Loading…
Cancel
Save