diff options
Diffstat (limited to 'module/plugins/hoster/LetitbitNet.py')
-rw-r--r-- | module/plugins/hoster/LetitbitNet.py | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/module/plugins/hoster/LetitbitNet.py b/module/plugins/hoster/LetitbitNet.py index 9357cc758..983a50c6c 100644 --- a/module/plugins/hoster/LetitbitNet.py +++ b/module/plugins/hoster/LetitbitNet.py @@ -71,7 +71,7 @@ class LetitbitNet(SimpleHoster): def handleFree(self): action, inputs = self.parseHtmlForm('id="ifree_form"') if not action: - self.error("page 1 / ifree_form") + self.error("ifree_form") domain = "http://www." + self.HOSTER_NAME self.pyfile.size = float(inputs['sssize']) @@ -80,22 +80,6 @@ class LetitbitNet(SimpleHoster): self.html = self.load(domain + action, post=inputs, cookies=True) - # action, inputs = self.parseHtmlForm('id="d3_form"') - # if not action: - # self.error("page 2 / d3_form") - # self.logDebug(action, inputs) - # - # self.html = self.load(action, post = inputs, cookies = True) - # - # try: - # ajax_check_url, captcha_url = re.search(self.CHECK_URL_PATTERN, self.html).groups() - # m = re.search(self.SECONDS_PATTERN, self.html) - # seconds = int(m.group(1)) if m else 60 - # self.wait(seconds+1) - # except Exception, e: - # self.logError(e) - # self.error("page 3 / js") - m = re.search(self.SECONDS_PATTERN, self.html) seconds = int(m.group(1)) if m else 60 self.logDebug("Seconds found", seconds) @@ -106,7 +90,7 @@ class LetitbitNet(SimpleHoster): response = self.load("%s/ajax/download3.php" % domain, post=" ", cookies=True) if response != '1': - self.error('Unknown response - ajax_check_url') + self.error("Unknown response - ajax_check_url") self.logDebug(response) recaptcha = ReCaptcha(self) @@ -123,7 +107,6 @@ class LetitbitNet(SimpleHoster): self.logWarning("Daily limit reached") self.wait(secondsToMidnight(gmt=2), True) if response == "error_wrong_captcha": - self.logError("Wrong Captcha") self.invalidCaptcha() self.retry() elif response.startswith('['): @@ -137,7 +120,6 @@ class LetitbitNet(SimpleHoster): for download_url in urls: try: - self.logDebug("Download URL", download_url) self.download(download_url) break except Exception, e: |