mirror of https://github.com/Jackett/Jackett
RevolutionTT: add automatic relogin
This commit is contained in:
parent
3e9006464d
commit
5936defc06
|
@ -309,6 +309,13 @@ namespace Jackett.Common.Indexers
|
||||||
}
|
}
|
||||||
|
|
||||||
var results = await RequestStringWithCookiesAndRetry(searchUrl);
|
var results = await RequestStringWithCookiesAndRetry(searchUrl);
|
||||||
|
if (results.IsRedirect)
|
||||||
|
{
|
||||||
|
// re-login
|
||||||
|
await ApplyConfiguration(null);
|
||||||
|
results = await RequestStringWithCookiesAndRetry(searchUrl);
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
CQ dom = results.Content;
|
CQ dom = results.Content;
|
||||||
|
|
Loading…
Reference in New Issue