diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-04-11 12:17:38 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2014-04-11 12:17:38 +0200 |
commit | 7f1467c64fe5c0e902498b3252afd65cb68ed2f9 (patch) | |
tree | 9e408cdfc653731c8b84e83eecd0d26bcf2124ff /module/plugins/hoster/CzshareCom.py | |
parent | Fix retry time formats (diff) | |
download | pyload-7f1467c64fe5c0e902498b3252afd65cb68ed2f9.tar.xz |
Use wait to set time in SimpleHoster plugins
Merges vuolter/pyload@bb002ac
Diffstat (limited to 'module/plugins/hoster/CzshareCom.py')
-rw-r--r-- | module/plugins/hoster/CzshareCom.py | 6 |
1 files changed, 3 insertions, 3 deletions
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"<li>Zadaný ověřovací kód nesouhlasí!</li>" 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() |