TVChaosUK: relogin if necessary

This commit is contained in:
kaso17 2016-12-17 13:57:40 +01:00
parent a8ddf21081
commit 7b2dd93f2f
1 changed files with 7 additions and 0 deletions

View File

@ -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;