mirror of
https://github.com/Jackett/Jackett.git
synced 2025-10-03 00:47:21 +02:00
cardigannindexer: correclty identify when recaptcha is in use
some sites drop the script but leave the g-recaptcha div behind causing false positives on hascaptcha flag.
This commit is contained in:
@@ -788,8 +788,9 @@ namespace Jackett.Common.Indexers
|
||||
|
||||
var hasCaptcha = false;
|
||||
|
||||
var CloudFlareCaptchaChallenge = landingResultDocument.QuerySelector("script[src*=\"/recaptcha/api.js\"]");
|
||||
var grecaptcha = landingResultDocument.QuerySelector(".g-recaptcha");
|
||||
if (grecaptcha != null)
|
||||
if (CloudFlareCaptchaChallenge != null && grecaptcha != null)
|
||||
{
|
||||
hasCaptcha = true;
|
||||
var CaptchaItem = new RecaptchaItem();
|
||||
|
Reference in New Issue
Block a user