mirror of
https://github.com/Jackett/Jackett
synced 2025-02-24 23:22:46 +00:00
Cardigann: add support for static cookies
This commit is contained in:
parent
3e71a682ab
commit
a15537a7d5
1 changed files with 3 additions and 0 deletions
|
@ -140,6 +140,7 @@ namespace Jackett.Indexers
|
|||
{
|
||||
public string Path { get; set; }
|
||||
public string Submitpath { get; set; }
|
||||
public List<string> Cookies { get; set; }
|
||||
public string Method { get; set; }
|
||||
public string Form { get; set; }
|
||||
public bool Selectors { get; set; } = false;
|
||||
|
@ -844,6 +845,8 @@ namespace Jackett.Indexers
|
|||
var LoginUrl = resolvePath(Login.Path);
|
||||
|
||||
configData.CookieHeader.Value = null;
|
||||
if (Login.Cookies != null)
|
||||
configData.CookieHeader.Value = String.Join("; ", Login.Cookies);
|
||||
landingResult = await RequestStringWithCookies(LoginUrl.AbsoluteUri, null, SiteLink);
|
||||
|
||||
var htmlParser = new HtmlParser();
|
||||
|
|
Loading…
Reference in a new issue