Cardigann: fix form login

This commit is contained in:
kaso17
2017-01-19 14:22:26 +01:00
parent 3d17b736c5
commit f96a493c08

View File

@@ -477,17 +477,20 @@ namespace Jackett.Indexers
} }
// selector inputs // selector inputs
foreach (var Selectorinput in Login.Selectorinputs) if (Login.Selectorinputs != null)
{ {
string value = null; foreach (var Selectorinput in Login.Selectorinputs)
try
{ {
value = handleSelector(Selectorinput.Value, landingResultDocument.FirstElementChild); string value = null;
pairs[Selectorinput.Key] = value; try
} {
catch (Exception ex) value = handleSelector(Selectorinput.Value, landingResultDocument.FirstElementChild);
{ pairs[Selectorinput.Key] = value;
throw new Exception(string.Format("Error while parsing selector input={0}, selector={1}, value={2}: {3}", Selectorinput.Key, Selectorinput.Value.Selector, value, ex.Message)); }
catch (Exception ex)
{
throw new Exception(string.Format("Error while parsing selector input={0}, selector={1}, value={2}: {3}", Selectorinput.Key, Selectorinput.Value.Selector, value, ex.Message));
}
} }
} }