GhostCity: add auto re login

This commit is contained in:
kaso17 2017-08-18 18:00:50 +02:00
parent 978ce0827f
commit 2e169a8c3a
1 changed files with 6 additions and 0 deletions

View File

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