mirror of https://github.com/Jackett/Jackett
PirateTheNet: add auo relogin support
This commit is contained in:
parent
b1d55fdf00
commit
1a85927e44
|
@ -123,6 +123,13 @@ namespace Jackett.Indexers
|
|||
searchUrl += "?" + queryCollection.GetQueryString();
|
||||
|
||||
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 New Issue