mirror of
https://github.com/Jackett/Jackett
synced 2025-02-24 23:22:46 +00:00
EliteTracker: relogin if necessary
This commit is contained in:
parent
073c23c177
commit
cc4337b588
1 changed files with 6 additions and 0 deletions
|
@ -154,6 +154,12 @@ namespace Jackett.Indexers
|
|||
queryCollection.Add("category", "0"); // multi cat search not supported
|
||||
|
||||
var results = await PostDataWithCookies(BrowseUrl, queryCollection);
|
||||
if (results.IsRedirect)
|
||||
{
|
||||
// re-login
|
||||
await ApplyConfiguration(null);
|
||||
results = await PostDataWithCookies(BrowseUrl, queryCollection);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue