From 4516f80fe3ed6c0a21bd1ca6309b58bd1d6d2635 Mon Sep 17 00:00:00 2001 From: jiaz Date: Wed, 11 Sep 2024 15:26:45 +0000 Subject: [PATCH] TwoCaptchaSolver: -updated isChallengeSupported refs #87583 git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@49765 ebf7c1c2-ba36-0410-9fe8-c592906822b4 Former-commit-id: e43beccb4d390110bcf0778300352d2783256147 --- .../v2/solver/twocaptcha/TwoCaptchaSolver.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/org/jdownloader/captcha/v2/solver/twocaptcha/TwoCaptchaSolver.java b/src/org/jdownloader/captcha/v2/solver/twocaptcha/TwoCaptchaSolver.java index 5b2ed643d5..fea17c2286 100644 --- a/src/org/jdownloader/captcha/v2/solver/twocaptcha/TwoCaptchaSolver.java +++ b/src/org/jdownloader/captcha/v2/solver/twocaptcha/TwoCaptchaSolver.java @@ -4,10 +4,12 @@ import java.io.IOException; import java.util.HashMap; import java.util.Map; +import jd.http.Browser; +import jd.http.requests.PostRequest; + import org.appwork.storage.JSonStorage; import org.appwork.storage.Storable; import org.appwork.storage.TypeRef; -import org.appwork.utils.DebugMode; import org.appwork.utils.IO; import org.appwork.utils.StringUtils; import org.appwork.utils.parser.UrlQuery; @@ -29,9 +31,6 @@ import org.jdownloader.gui.translate._GUI; import org.jdownloader.images.NewTheme; import org.jdownloader.settings.staticreferences.CFG_TWO_CAPTCHA; -import jd.http.Browser; -import jd.http.requests.PostRequest; - public class TwoCaptchaSolver extends AbstractTwoCaptchaSolver { private static final TwoCaptchaSolver INSTANCE = new TwoCaptchaSolver(); @@ -58,7 +57,7 @@ public class TwoCaptchaSolver extends AbstractTwoCaptchaSolver { protected boolean isChallengeSupported(final Challenge c) { if (c instanceof RecaptchaV2Challenge || c instanceof HCaptchaChallenge || c instanceof BasicCaptchaChallenge) { return true; - } else if (c instanceof CutCaptchaChallenge && DebugMode.TRUE_IN_IDE_ELSE_FALSE) { + } else if (c instanceof CutCaptchaChallenge) { return true; } else { return false; @@ -196,8 +195,7 @@ public class TwoCaptchaSolver extends AbstractTwoCaptchaSolver { } /** - * https://2captcha.com/2captcha-api#solving_recaptchav2_new
- * https://2captcha.com/2captcha-api#solving_recaptchav3 + * https://2captcha.com/2captcha-api#solving_recaptchav2_new
https://2captcha.com/2captcha-api#solving_recaptchav3 */ private void handleRecaptchaV2(CESSolverJob job) throws InterruptedException { final RecaptchaV2Challenge challenge = (RecaptchaV2Challenge) job.getChallenge();