Cardigann: Fix relogin for method=form (#800)

This commit is contained in:
kaso17 2016-12-04 20:58:50 +01:00 committed by GitHub
parent 64e537e77d
commit 82ae611c81
1 changed files with 6 additions and 0 deletions

View File

@ -384,6 +384,12 @@ namespace Jackett.Indexers
if (FormSelector == null)
FormSelector = "form";
// landingResultDocument might not be initiated if the login is caused by a relogin during a query
if (landingResultDocument == null)
{
await GetConfigurationForSetup();
}
var form = landingResultDocument.QuerySelector(FormSelector);
if (form == null)
{