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