Captcha answer
(self, args)
| 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())) |
nothing calls this directly
no test coverage detected