mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Cardigann: fix form login
This commit is contained in:
@@ -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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user