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

Method event_c

module/plugins/hooks/IRC.py:366–378  ·  view source on GitHub ↗

Captcha answer

(self, args)

Source from the content-addressed store, hash-verified

364 return ["INFO: Pulled package #%d from queue to collector." % id]
365
366 def event_c(self, args):
367 """
368 Captcha answer
369 """
370 if not args:
371 return ["ERROR: Captcha ID missing."]
372
373 task = self.pyload.captchaManager.getTaskByID(args[0])
374 if not task:
375 return ["ERROR: Captcha Task with ID %s does not exists." % args[0]]
376
377 task.setResult(" ".join(args[1:]))
378 return ["INFO: Result %s saved." % " ".join(args[1:])]
379
380 def event_freeSpace(self, args):
381 b = format_size(int(self.pyload.api.freeSpace()))

Callers

nothing calls this directly

Calls 3

getTaskByIDMethod · 0.80
setResultMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected