summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/LetitbitNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/LetitbitNet.py')
-rw-r--r--module/plugins/hoster/LetitbitNet.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/hoster/LetitbitNet.py b/module/plugins/hoster/LetitbitNet.py
index 17e638a18..8443c2206 100644
--- a/module/plugins/hoster/LetitbitNet.py
+++ b/module/plugins/hoster/LetitbitNet.py
@@ -36,7 +36,7 @@ def getInfo(urls):
class LetitbitNet(SimpleHoster):
__name__ = "LetitbitNet"
__type__ = "hoster"
- __version__ = "0.24"
+ __version__ = "0.25"
__pattern__ = r'http://(?:www\.)?(letitbit|shareflare)\.net/download/.*'
@@ -70,7 +70,7 @@ class LetitbitNet(SimpleHoster):
def handleFree(self):
action, inputs = self.parseHtmlForm('id="ifree_form"')
if not action:
- self.parseError("page 1 / ifree_form")
+ self.error("page 1 / ifree_form")
domain = "http://www." + self.HOSTER_NAME
self.pyfile.size = float(inputs['sssize'])
@@ -81,7 +81,7 @@ class LetitbitNet(SimpleHoster):
# action, inputs = self.parseHtmlForm('id="d3_form"')
# if not action:
- # self.parseError("page 2 / d3_form")
+ # self.error("page 2 / d3_form")
# self.logDebug(action, inputs)
#
# self.html = self.load(action, post = inputs, cookies = True)
@@ -93,7 +93,7 @@ class LetitbitNet(SimpleHoster):
# self.wait(seconds+1)
# except Exception, e:
# self.logError(e)
- # self.parseError("page 3 / js")
+ # self.error("page 3 / js")
m = re.search(self.SECONDS_PATTERN, self.html)
seconds = int(m.group(1)) if m else 60
@@ -105,14 +105,14 @@ class LetitbitNet(SimpleHoster):
response = self.load("%s/ajax/download3.php" % domain, post=" ", cookies=True)
if response != '1':
- self.parseError('Unknown response - ajax_check_url')
+ self.error('Unknown response - ajax_check_url')
self.logDebug(response)
recaptcha = ReCaptcha(self)
captcha_key = recaptcha.detect_key()
if captcha_key is None:
- self.parseError("ReCaptcha key not found")
+ self.error("ReCaptcha key not found")
challenge, response = recaptcha.challenge(captcha_key)
@@ -135,7 +135,7 @@ class LetitbitNet(SimpleHoster):
elif response.startswith('http://'):
urls = [response]
else:
- self.parseError("Unknown response - captcha check")
+ self.error("Unknown response - captcha check")
self.correctCaptcha()