From 88858022affa4bbc56c935910d6446b6d7cdc1f5 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Mon, 3 Sep 2018 15:32:16 +0200 Subject: [PATCH] TorrentDay: improve cookie handling --- src/Jackett.Common/Indexers/TorrentDay.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Indexers/TorrentDay.cs b/src/Jackett.Common/Indexers/TorrentDay.cs index 09cff5e63..3c49d9695 100644 --- a/src/Jackett.Common/Indexers/TorrentDay.cs +++ b/src/Jackett.Common/Indexers/TorrentDay.cs @@ -54,7 +54,7 @@ namespace Jackett.Common.Indexers client: wc, logger: l, p: ps, - configData: new ConfigurationDataRecaptchaLogin()) + configData: new ConfigurationDataRecaptchaLogin("Make sure you get the cookies from the same torrent day domain as configured above.")) { wc.EmulateBrowser = false; Encoding = Encoding.UTF8; @@ -121,7 +121,9 @@ namespace Jackett.Common.Indexers loginPage = await RequestStringWithCookies(loginPage.RedirectingTo, string.Empty); CQ cq = loginPage.Content; var result = this.configData; - result.CookieHeader.Value = loginPage.Cookies; + + //result.CookieHeader.Value = loginPage.Cookies; + UpdateCookieHeader(loginPage.Cookies); // update cookies instead of replacing them, see #3717 result.Captcha.SiteKey = cq.Find(".g-recaptcha").Attr("data-sitekey"); result.Captcha.Version = "2"; return result;