EliteTracker: relogin if necessary

This commit is contained in:
kaso17
2017-01-20 14:25:17 +01:00
parent 073c23c177
commit cc4337b588

View File

@@ -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
{