From 7f1467c64fe5c0e902498b3252afd65cb68ed2f9 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 11 Apr 2014 12:17:38 +0200 Subject: Use wait to set time in SimpleHoster plugins Merges vuolter/pyload@bb002ac --- module/plugins/hoster/CzshareCom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/hoster/CzshareCom.py') diff --git a/module/plugins/hoster/CzshareCom.py b/module/plugins/hoster/CzshareCom.py index 763bbbd29..4082ed0b9 100644 --- a/module/plugins/hoster/CzshareCom.py +++ b/module/plugins/hoster/CzshareCom.py @@ -96,7 +96,7 @@ class CzshareCom(SimpleHoster): # get download ticket and parse html self.html = self.load(parsed_url, cookies=True, decode=True) if re.search(self.MULTIDL_PATTERN, self.html): - self.longWait(300, 12) + self.longWait(5 * 60, 12) try: form = re.search(self.FREE_FORM_PATTERN, self.html, re.DOTALL).group(1) @@ -114,7 +114,7 @@ class CzshareCom(SimpleHoster): if u"
  • Zadaný ověřovací kód nesouhlasí!
  • " in self.html: self.invalidCaptcha() elif re.search(self.MULTIDL_PATTERN, self.html): - self.longWait(300, 12) + self.longWait(5 * 60, 12) else: self.correctCaptcha() break @@ -150,7 +150,7 @@ class CzshareCom(SimpleHoster): if check == "credit": self.resetAccount() elif check == "multi_dl": - self.longWait(300, 12) + self.longWait(5 * 60, 12) elif check == "captcha_err": self.invalidCaptcha() self.retry() -- cgit v1.2.3