summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/GigapetaCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/GigapetaCom.py')
-rw-r--r--module/plugins/hoster/GigapetaCom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/GigapetaCom.py b/module/plugins/hoster/GigapetaCom.py
index e4562be59..3fcf4ee32 100644
--- a/module/plugins/hoster/GigapetaCom.py
+++ b/module/plugins/hoster/GigapetaCom.py
@@ -39,7 +39,7 @@ class GigapetaCom(SimpleHoster):
for _i in xrange(5):
self.check_errors()
- captcha = self.decrypt_captcha(captcha_url)
+ captcha = self.captcha.decrypt_image(captcha_url)
self.html = self.load(pyfile.url, post={
'captcha_key': captcha_key,
'captcha': captcha,
@@ -50,7 +50,7 @@ class GigapetaCom(SimpleHoster):
self.link = m.group(1).rstrip() #@TODO: Remove .rstrip() in 0.4.10
break
elif "Entered figures don`t coincide with the picture" in self.html:
- self.invalid_captcha()
+ self.captcha.invalid()
else:
self.fail(_("No valid captcha code entered"))