AnimeBytes: automatically re-login

This commit is contained in:
kaso17 2017-01-16 12:23:40 +01:00
parent 9b0a03d002
commit ad921afe94
1 changed files with 7 additions and 0 deletions

View File

@ -210,6 +210,13 @@ namespace Jackett.Indexers
// Get the content from the tracker
var response = await RequestStringWithCookiesAndRetry(queryUrl);
if (response.IsRedirect)
{
// re-login
ApplyConfiguration(null);
response = await RequestStringWithCookiesAndRetry(queryUrl);
}
CQ dom = response.Content;
// Parse