summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/OboomCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-21 22:53:37 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-21 22:53:37 +0200
commit027cb529d79558de19c47da88a782b31745a65c9 (patch)
tree18ab9a8568cee2d07e6fc0dc8f9c03202245c594 /module/plugins/hoster/OboomCom.py
parentNew __status__ magic key (diff)
downloadpyload-027cb529d79558de19c47da88a782b31745a65c9.tar.xz
New Captcha skeleton
Diffstat (limited to 'module/plugins/hoster/OboomCom.py')
-rw-r--r--module/plugins/hoster/OboomCom.py8
1 files changed, 4 insertions, 4 deletions
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"))