mirror of
https://github.com/Jackett/Jackett
synced 2025-02-23 23:00:51 +00:00
RevolutionTT: add automatic relogin
This commit is contained in:
parent
3e9006464d
commit
5936defc06
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue