summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/CzshareCom.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/CzshareCom.py
parentNew __status__ magic key (diff)
downloadpyload-027cb529d79558de19c47da88a782b31745a65c9.tar.xz
New Captcha skeleton
Diffstat (limited to 'module/plugins/hoster/CzshareCom.py')
-rw-r--r--module/plugins/hoster/CzshareCom.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/CzshareCom.py b/module/plugins/hoster/CzshareCom.py
index 96eff828a..71f217c94 100644
--- a/module/plugins/hoster/CzshareCom.py
+++ b/module/plugins/hoster/CzshareCom.py
@@ -105,17 +105,17 @@ class CzshareCom(SimpleHoster):
#: Get and decrypt captcha
captcha_url = 'http://sdilej.cz/captcha.php'
for _i in xrange(5):
- inputs['captchastring2'] = self.decrypt_captcha(captcha_url)
+ inputs['captchastring2'] = self.captcha.decrypt_image(captcha_url)
self.html = self.load(parsed_url, post=inputs)
if u"<li>Zadaný ověřovací kód nesouhlasí!</li>" in self.html:
- self.invalid_captcha()
+ self.captcha.invalid()
elif re.search(self.MULTIDL_PATTERN, self.html):
self.wait(5 * 60, 12, _("Download limit reached"))
else:
- self.correct_captcha()
+ self.captcha.correct()
break
else:
self.fail(_("No valid captcha code entered"))
@@ -154,7 +154,7 @@ class CzshareCom(SimpleHoster):
self.wait(5 * 60, 12, _("Download limit reached"))
elif check == "captcha":
- self.invalid_captcha()
+ self.captcha.invalid()
self.retry()
return super(CzshareCom, self).checkFile()