Cardigann: no login needed if there's no login definition (#799)

This commit is contained in:
kaso17 2016-12-04 20:49:07 +01:00 committed by GitHub
parent 245855c2ab
commit 64e537e77d
1 changed files with 3 additions and 0 deletions

View File

@ -481,6 +481,9 @@ namespace Jackett.Indexers
return true;
}
if (Definition.Login == null || Definition.Login.Test == null)
return false;
if (Definition.Login.Test.Selector != null)
{
var selection = document.QuerySelectorAll(Definition.Login.Test.Selector);