summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/CzshareCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-16 17:31:38 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-24 22:40:32 +0200
commitc1764e2fea0bb05164c83a876e8cd58b97f58f25 (patch)
treebe1af8dbf5542d93f1cb97f07dd1793fc7acc2df /module/plugins/hoster/CzshareCom.py
parent[SimpleHoster] fixurl (diff)
downloadpyload-c1764e2fea0bb05164c83a876e8cd58b97f58f25.tar.xz
Update all
Diffstat (limited to 'module/plugins/hoster/CzshareCom.py')
-rw-r--r--module/plugins/hoster/CzshareCom.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/hoster/CzshareCom.py b/module/plugins/hoster/CzshareCom.py
index befd964bf..e3d89a2a5 100644
--- a/module/plugins/hoster/CzshareCom.py
+++ b/module/plugins/hoster/CzshareCom.py
@@ -44,7 +44,7 @@ class CzshareCom(SimpleHoster):
m = re.search(self.USER_CREDIT_PATTERN, self.html)
if m is None:
self.account.relogin(self.user)
- self.html = self.load(self.pyfile.url, decode=True)
+ self.html = self.load(self.pyfile.url)
m = re.search(self.USER_CREDIT_PATTERN, self.html)
if m is None:
return False
@@ -88,9 +88,9 @@ class CzshareCom(SimpleHoster):
self.logDebug("PARSED_URL:" + parsed_url)
# get download ticket and parse html
- self.html = self.load(parsed_url, decode=True)
+ self.html = self.load(parsed_url)
if re.search(self.MULTIDL_PATTERN, self.html):
- self.longWait(5 * 60, 12)
+ self.wait(5 * 60, 12, _("Download limit reached"))
try:
form = re.search(self.FREE_FORM_PATTERN, self.html, re.S).group(1)
@@ -105,13 +105,13 @@ class CzshareCom(SimpleHoster):
captcha_url = 'http://sdilej.cz/captcha.php'
for _i in xrange(5):
inputs['captchastring2'] = self.decryptCaptcha(captcha_url)
- self.html = self.load(parsed_url, post=inputs, decode=True)
+ self.html = self.load(parsed_url, post=inputs)
if u"<li>Zadaný ověřovací kód nesouhlasí!</li>" in self.html:
self.invalidCaptcha()
elif re.search(self.MULTIDL_PATTERN, self.html):
- self.longWait(5 * 60, 12)
+ self.wait(5 * 60, 12, _("Download limit reached"))
else:
self.correctCaptcha()
@@ -150,7 +150,7 @@ class CzshareCom(SimpleHoster):
self.resetAccount()
elif check == "multi-dl":
- self.longWait(5 * 60, 12)
+ self.wait(5 * 60, 12, _("Download limit reached"))
elif check == "captcha":
self.invalidCaptcha()