From 6ae925467840f2f0d1864fb24d6029c0f235315a Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 29 May 2021 16:10:02 -0400 Subject: [PATCH] Fixed: (SuperBits) Use Cookie for grabs --- src/NzbDrone.Core/Indexers/Definitions/SuperBits.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/SuperBits.cs b/src/NzbDrone.Core/Indexers/Definitions/SuperBits.cs index fb51fbb52..963c579a9 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/SuperBits.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/SuperBits.cs @@ -43,6 +43,11 @@ namespace NzbDrone.Core.Indexers.Definitions return new SuperBitsParser(Settings, Capabilities.Categories, BaseUrl); } + protected override IDictionary 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; }