PirateTheNet: add auo relogin support

This commit is contained in:
kaso17 2017-11-13 11:18:41 +01:00
parent b1d55fdf00
commit 1a85927e44
1 changed files with 7 additions and 0 deletions

View File

@ -123,6 +123,13 @@ namespace Jackett.Indexers
searchUrl += "?" + queryCollection.GetQueryString();
var results = await RequestStringWithCookiesAndRetry(searchUrl);
if (results.IsRedirect)
{
// re-login
await ApplyConfiguration(null);
results = await RequestStringWithCookiesAndRetry(searchUrl);
}
try
{
CQ dom = results.Content;