mirror of
https://github.com/Jackett/Jackett
synced 2025-02-24 15:21:06 +00:00
GhostCity: add auto re login
This commit is contained in:
parent
978ce0827f
commit
2e169a8c3a
1 changed files with 6 additions and 0 deletions
|
@ -134,6 +134,12 @@ namespace Jackett.Indexers
|
|||
|
||||
var results = await RequestStringWithCookiesAndRetry(searchUrl);
|
||||
|
||||
if (results.Content.Contains("<meta http-equiv=\"refresh\"")) // relogin needed?
|
||||
{
|
||||
await ApplyConfiguration(null);
|
||||
results = await RequestStringWithCookiesAndRetry(searchUrl);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
CQ dom = results.Content;
|
||||
|
|
Loading…
Reference in a new issue