mirror of
https://github.com/Jackett/Jackett
synced 2025-01-03 13:46:10 +00:00
PirateTheNet: add auo relogin support
This commit is contained in:
parent
b1d55fdf00
commit
1a85927e44
1 changed files with 7 additions and 0 deletions
|
@ -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 a new issue