mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Cardigann: add support for submitpath
This commit is contained in:
@@ -76,6 +76,7 @@ namespace Jackett.Indexers
|
|||||||
public class loginBlock
|
public class loginBlock
|
||||||
{
|
{
|
||||||
public string Path { get; set; }
|
public string Path { get; set; }
|
||||||
|
public string Submitpath { get; set; }
|
||||||
public string Method { get; set; }
|
public string Method { get; set; }
|
||||||
public string Form { get; set; }
|
public string Form { get; set; }
|
||||||
public bool Selectors { get; set; } = false;
|
public bool Selectors { get; set; } = false;
|
||||||
@@ -445,7 +446,9 @@ namespace Jackett.Indexers
|
|||||||
}
|
}
|
||||||
|
|
||||||
var submitUrl = resolvePath(form.GetAttribute("action"));
|
var submitUrl = resolvePath(form.GetAttribute("action"));
|
||||||
|
if (Login.Submitpath != null)
|
||||||
|
submitUrl = resolvePath(Login.Submitpath);
|
||||||
|
|
||||||
foreach (var input in inputs)
|
foreach (var input in inputs)
|
||||||
{
|
{
|
||||||
var name = input.GetAttribute("name");
|
var name = input.GetAttribute("name");
|
||||||
|
Reference in New Issue
Block a user