RevolutionTT: add automatic relogin

This commit is contained in:
kaso17 2018-08-25 18:32:10 +02:00
parent 3e9006464d
commit 5936defc06
1 changed files with 7 additions and 0 deletions

View File

@ -309,6 +309,13 @@ namespace Jackett.Common.Indexers
}
var results = await RequestStringWithCookiesAndRetry(searchUrl);
if (results.IsRedirect)
{
// re-login
await ApplyConfiguration(null);
results = await RequestStringWithCookiesAndRetry(searchUrl);
}
try
{
CQ dom = results.Content;