diff --git a/src/NzbDrone.Core/Indexers/Definitions/DigitalCore.cs b/src/NzbDrone.Core/Indexers/Definitions/DigitalCore.cs index e71e49e18..52568ee8f 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/DigitalCore.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/DigitalCore.cs @@ -40,6 +40,16 @@ namespace NzbDrone.Core.Indexers.Definitions return new DigitalCoreParser(Settings, Capabilities.Categories, BaseUrl); } + protected override IDictionary GetCookies() + { + var cookies = new Dictionary(); + + 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; }