summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MegasharesCom.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/MegasharesCom.py
parentNew __status__ magic key (diff)
downloadpyload-027cb529d79558de19c47da88a782b31745a65c9.tar.xz
New Captcha skeleton
Diffstat (limited to 'module/plugins/hoster/MegasharesCom.py')
-rw-r--r--module/plugins/hoster/MegasharesCom.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/MegasharesCom.py b/module/plugins/hoster/MegasharesCom.py
index 830036cdd..65c41c23f 100644
--- a/module/plugins/hoster/MegasharesCom.py
+++ b/module/plugins/hoster/MegasharesCom.py
@@ -56,7 +56,7 @@ class MegasharesCom(SimpleHoster):
for _i in xrange(5):
random_num = re.search(self.REACTIVATE_NUM_PATTERN, self.html).group(1)
- verifyinput = self.decrypt_captcha("http://d01.megashares.com/index.php",
+ verifyinput = self.captcha.decrypt_image("http://d01.megashares.com/index.php",
get={'secgfx': "gfx", 'random_num': random_num})
self.log_info(_("Reactivating passport %s: %s %s") % (passport_num, random_num, verifyinput))
@@ -70,10 +70,10 @@ class MegasharesCom(SimpleHoster):
'rsrnd[]' : str(int(time.time() * 1000))})
if 'Thank you for reactivating your passport.' in res:
- self.correct_captcha()
+ self.captcha.correct()
self.retry()
else:
- self.invalid_captcha()
+ self.captcha.invalid()
else:
self.fail(_("Failed to reactivate passport"))