mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Cardigann: add support for static cookies
This commit is contained in:
@@ -140,6 +140,7 @@ namespace Jackett.Indexers
|
|||||||
{
|
{
|
||||||
public string Path { get; set; }
|
public string Path { get; set; }
|
||||||
public string Submitpath { get; set; }
|
public string Submitpath { get; set; }
|
||||||
|
public List<string> Cookies { 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;
|
||||||
@@ -844,6 +845,8 @@ namespace Jackett.Indexers
|
|||||||
var LoginUrl = resolvePath(Login.Path);
|
var LoginUrl = resolvePath(Login.Path);
|
||||||
|
|
||||||
configData.CookieHeader.Value = null;
|
configData.CookieHeader.Value = null;
|
||||||
|
if (Login.Cookies != null)
|
||||||
|
configData.CookieHeader.Value = String.Join("; ", Login.Cookies);
|
||||||
landingResult = await RequestStringWithCookies(LoginUrl.AbsoluteUri, null, SiteLink);
|
landingResult = await RequestStringWithCookies(LoginUrl.AbsoluteUri, null, SiteLink);
|
||||||
|
|
||||||
var htmlParser = new HtmlParser();
|
var htmlParser = new HtmlParser();
|
||||||
|
Reference in New Issue
Block a user