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

Method handleCaptcha

module/CaptchaManager.py:63–84  ·  view source on GitHub ↗
(self, task, timeout)

Source from the content-addressed store, hash-verified

61 return None
62
63 def handleCaptcha(self, task, timeout):
64 cli = self.core.isClientConnected()
65
66 task.setWaiting(timeout)
67
68 # if cli: # Client connected -> should solve the captcha
69 # task.setWaiting(50) # Wait minimum 50 sec for response
70
71 for plugin in self.core.hookManager.activePlugins():
72 try:
73 plugin.newCaptchaTask(task)
74 except:
75 if self.core.debug:
76 print_exc()
77
78 if task.handler or cli: # The captcha was handled
79 self.tasks.append(task)
80 return True
81
82 task.error = _("No Client connected for captcha decrypting")
83
84 return False
85
86
87class CaptchaTask():

Callers 3

decryptCaptchaMethod · 0.80
decrypt_imageMethod · 0.80
decrypt_interactiveMethod · 0.80

Calls 6

isClientConnectedMethod · 0.80
setWaitingMethod · 0.80
activePluginsMethod · 0.80
newCaptchaTaskMethod · 0.80
_Function · 0.50
appendMethod · 0.45

Tested by

no test coverage detected