From 7b2dd93f2ff4aa391b5cd1ab671e04dd01a4f664 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Sat, 17 Dec 2016 13:57:40 +0100 Subject: [PATCH] TVChaosUK: relogin if necessary --- src/Jackett/Indexers/TVChaosUK.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Jackett/Indexers/TVChaosUK.cs b/src/Jackett/Indexers/TVChaosUK.cs index a26d3e1a8..e0e0c1a01 100644 --- a/src/Jackett/Indexers/TVChaosUK.cs +++ b/src/Jackett/Indexers/TVChaosUK.cs @@ -212,6 +212,13 @@ namespace Jackett.Indexers }; var searchPage = await PostDataWithCookiesAndRetry(SearchUrl, searchParams); + if (searchPage.IsRedirect) + { + // re-login + await ApplyConfiguration(null); + searchPage = await PostDataWithCookiesAndRetry(SearchUrl, searchParams); + } + try { CQ dom = searchPage.Content;