mirror of https://github.com/Jackett/Jackett
parent
2647457706
commit
2afce9f2d9
|
@ -79,7 +79,7 @@ namespace Jackett.Indexers
|
||||||
public override async Task<ConfigurationData> GetConfigurationForSetup()
|
public override async Task<ConfigurationData> GetConfigurationForSetup()
|
||||||
{
|
{
|
||||||
var loginPage = await RequestStringWithCookies(LoginUrl, string.Empty);
|
var loginPage = await RequestStringWithCookies(LoginUrl, string.Empty);
|
||||||
string recaptchaSiteKey = new Regex(@"loginwidget', \{[\s]{4,30}'sitekey' : '([0-9A-Za-z]{5,60})',[\s]{4,30}'theme'").Match(loginPage.Content).Groups[1].ToString().Trim();
|
string recaptchaSiteKey = new Regex(@"loginwidget', \{[\s]{4,30}'sitekey' : '([0-9A-Za-z-]{5,60})',[\s]{4,30}'theme'").Match(loginPage.Content).Groups[1].ToString().Trim();
|
||||||
var result = new ConfigurationDataRecaptchaLogin();
|
var result = new ConfigurationDataRecaptchaLogin();
|
||||||
result.CookieHeader.Value = loginPage.Cookies;
|
result.CookieHeader.Value = loginPage.Cookies;
|
||||||
result.Captcha.SiteKey = recaptchaSiteKey;
|
result.Captcha.SiteKey = recaptchaSiteKey;
|
||||||
|
|
Loading…
Reference in New Issue