MCPcopy Index your code
hub / github.com/pyload/pyload / challenge

Method challenge

module/plugins/captcha/ReCaptcha.py:144–154  ·  view source on GitHub ↗
(self, key=None, data=None, version=None, secure_token=None)

Source from the content-addressed store, hash-verified

142 return 2
143
144 def challenge(self, key=None, data=None, version=None, secure_token=None):
145 key = key or self.retrieve_key(data)
146 secure_token = secure_token or self.detect_secure_token(data) if secure_token is not False else None
147
148 if version in (2, '2js'):
149 return getattr(self, "_challenge_v%s" % version)(key, secure_token=secure_token)
150 else:
151 return self.challenge(key,
152 data,
153 version=self.detect_version(data=data),
154 secure_token=secure_token)
155
156 def _prepare_image(self, image, challenge_msg):
157 if no_pil:

Callers 10

handle_captchaMethod · 0.95
handle_captchaMethod · 0.95
handle_freeMethod · 0.95
handle_captchaMethod · 0.95
handle_captchaMethod · 0.95
handle_freeMethod · 0.95
get_download_optionsMethod · 0.95
handle_freeMethod · 0.95

Calls 3

detect_secure_tokenMethod · 0.95
detect_versionMethod · 0.95
retrieve_keyMethod · 0.80

Tested by

no test coverage detected