DigitalHive: Fix error in configure script. Resolves #7755 (#7757)

This commit is contained in:
Cory 2020-03-20 19:17:54 -05:00 committed by GitHub
parent be8dfd7ad6
commit 3d6da64973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ namespace Jackett.Common.Indexers
var loginPage = await RequestStringWithCookies(LoginUrl, configData.CookieHeader.Value);
var parser = new HtmlParser();
var cq = parser.ParseDocument(loginPage.Content);
var recaptchaSiteKey = cq.QuerySelector(".g-recaptcha").GetAttribute("data-sitekey");
var recaptchaSiteKey = cq.QuerySelector(".g-recaptcha")?.GetAttribute("data-sitekey");
if (recaptchaSiteKey != null)
{
var result = configData;