summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/LetitbitNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-04-11 12:17:38 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2014-04-21 17:20:14 +0200
commit52b5c2a15b2dfa9bcc2ffdcc90b8e3f29fdaa7d8 (patch)
treebe392f70e0d628a97e793ef47080e0669420e33a /pyload/plugins/hoster/LetitbitNet.py
parentFix retry time formats (diff)
downloadpyload-52b5c2a15b2dfa9bcc2ffdcc90b8e3f29fdaa7d8.tar.xz
Use wait to set time in SimpleHoster plugins
Merges vuolter/pyload@bb002ac (cherry picked from commit 7f1467c64fe5c0e902498b3252afd65cb68ed2f9)
Diffstat (limited to 'pyload/plugins/hoster/LetitbitNet.py')
-rw-r--r--pyload/plugins/hoster/LetitbitNet.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/pyload/plugins/hoster/LetitbitNet.py b/pyload/plugins/hoster/LetitbitNet.py
index d2ef616a8..2475c31fe 100644
--- a/pyload/plugins/hoster/LetitbitNet.py
+++ b/pyload/plugins/hoster/LetitbitNet.py
@@ -97,8 +97,7 @@ class LetitbitNet(SimpleHoster):
# ajax_check_url, captcha_url = re.search(self.CHECK_URL_PATTERN, self.html).groups()
# found = re.search(self.SECONDS_PATTERN, self.html)
# seconds = int(found.group(1)) if found else 60
- # self.setWait(seconds+1)
- # self.wait()
+ # self.wait(seconds+1)
# except Exception, e:
# self.logError(e)
# self.parseError("page 3 / js")
@@ -109,8 +108,7 @@ class LetitbitNet(SimpleHoster):
found = re.search(self.CAPTCHA_CONTROL_FIELD, self.html)
recaptcha_control_field = found.group(1)
self.logDebug("ReCaptcha control field found", recaptcha_control_field)
- self.setWait(seconds + 1)
- self.wait()
+ self.wait(seconds + 1)
response = self.load("%s/ajax/download3.php" % self.DOMAIN, post=" ", cookies=True)
if response != '1':
@@ -128,8 +126,7 @@ class LetitbitNet(SimpleHoster):
self.invalidCaptcha()
if response == "error_free_download_blocked":
self.logInfo("Daily limit reached, waiting 24 hours")
- self.setWait(24 * 60 * 60)
- self.wait()
+ self.wait(24 * 60 * 60)
if response == "error_wrong_captcha":
self.logInfo("Wrong Captcha")
self.invalidCaptcha()