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

Method detect_key

module/plugins/captcha/ReCaptcha.py:107–117  ·  view source on GitHub ↗
(self, data=None)

Source from the content-addressed store, hash-verified

105 }"""
106
107 def detect_key(self, data=None):
108 html = data or self.retrieve_data()
109
110 m = re.search(self.KEY_V2_PATTERN, html)
111 if m is not None:
112 self.key = urllib.unquote(m.group(1).strip())
113 self.log_debug("Key: %s" % self.key)
114 return self.key
115 else:
116 self.log_warning(_("Key pattern not found"))
117 return None
118
119 def detect_secure_token(self, data=None):
120 html = data or self.retrieve_data()

Callers 9

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

Calls 5

retrieve_dataMethod · 0.80
log_debugMethod · 0.80
log_warningMethod · 0.80
_Function · 0.50
searchMethod · 0.45

Tested by

no test coverage detected