mirror of
https://github.com/Jackett/Jackett
synced 2025-03-04 10:48:26 +00:00
parent
b4c097fd97
commit
4965d6820c
1 changed files with 11 additions and 1 deletions
|
@ -104,7 +104,17 @@ namespace Jackett.Common.Indexers
|
|||
|
||||
public override async Task<ConfigurationData> GetConfigurationForSetup()
|
||||
{
|
||||
var loginPage = await RequestStringWithCookies(StartPageUrl, string.Empty);
|
||||
WebClientStringResult loginPage;
|
||||
try
|
||||
{
|
||||
loginPage = await RequestStringWithCookies(StartPageUrl, string.Empty);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// The login page is protected by Cloudflare
|
||||
return configData;
|
||||
}
|
||||
|
||||
var parser = new HtmlParser();
|
||||
var dom = parser.ParseDocument(loginPage.Content);
|
||||
var recaptcha = dom.QuerySelector(".g-recaptcha");
|
||||
|
|
Loading…
Add table
Reference in a new issue