House Of Torrents: automatic re-login is necessary

This commit is contained in:
kaso17 2016-12-10 22:32:31 +01:00
parent 5b641a5efc
commit 55f2951694
1 changed files with 7 additions and 0 deletions

View File

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