From 5a1186639e5e4d3a3a9bb879e56a84ed39ecb827 Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 15 Jun 2021 23:51:33 -0400 Subject: [PATCH] Fixed: Cookie set for Cardigann cookie indexers --- .../Indexers/Definitions/Cardigann/Cardigann.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Cardigann.cs b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Cardigann.cs index 393200ad4..0faa1ec1c 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Cardigann.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/Cardigann.cs @@ -59,6 +59,16 @@ namespace NzbDrone.Core.Indexers.Cardigann }; } + protected override IDictionary GetCookies() + { + if (Settings.ExtraFieldData.TryGetValue("cookie", out var cookies)) + { + return CookieUtil.CookieHeaderToDictionary((string)cookies); + } + + return base.GetCookies(); + } + public override IEnumerable DefaultDefinitions { get