From 027cb529d79558de19c47da88a782b31745a65c9 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 21 Jul 2015 22:53:37 +0200 Subject: New Captcha skeleton --- module/plugins/hoster/OboomCom.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/plugins/hoster/OboomCom.py') diff --git a/module/plugins/hoster/OboomCom.py b/module/plugins/hoster/OboomCom.py index aabd8c774..f5624439f 100644 --- a/module/plugins/hoster/OboomCom.py +++ b/module/plugins/hoster/OboomCom.py @@ -87,15 +87,15 @@ class OboomCom(Hoster): if result[0] == 200: self.download_token = result[1] self.download_auth = result[2] - self.correct_captcha() + self.captcha.correct() self.wait(30) break elif result[0] == 400: if result[1] == "incorrect-captcha-sol": - self.invalid_captcha() + self.captcha.invalid() elif result[1] == "captcha-timeout": - self.invalid_captcha() + self.captcha.invalid() elif result[1] == "forbidden": self.retry(5, 15 * 60, _("Service unavailable")) @@ -107,7 +107,7 @@ class OboomCom(Hoster): self.wait() self.retry(5) else: - self.invalid_captcha() + self.captcha.invalid() self.fail(_("Received invalid captcha 5 times")) -- cgit v1.2.3