summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/ExtabitCom.py
diff options
context:
space:
mode:
authorGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-02-27 22:58:21 +0100
committerGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-02-27 22:58:21 +0100
commit2396d92aa10bce755f15a8ce546b31f5b3ec45e2 (patch)
tree6777162e66fc97fe14b3317b2783b1e95320a387 /module/plugins/hoster/ExtabitCom.py
parentfixed #532, #543, letitbit, extabit, linkdecrypter; allow rs+nl.in free account (diff)
downloadpyload-2396d92aa10bce755f15a8ce546b31f5b3ec45e2.tar.xz
fix extabit.com
Diffstat (limited to 'module/plugins/hoster/ExtabitCom.py')
-rw-r--r--module/plugins/hoster/ExtabitCom.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/module/plugins/hoster/ExtabitCom.py b/module/plugins/hoster/ExtabitCom.py
index a23feb3a9..718423986 100644
--- a/module/plugins/hoster/ExtabitCom.py
+++ b/module/plugins/hoster/ExtabitCom.py
@@ -46,7 +46,11 @@ class ExtabitCom(SimpleHoster):
self.wait()
elif "The daily downloads limit from your IP is exceeded" in self.html:
self.setWait(3600, True)
- self.wait()
+ self.wait()
+
+ self.logDebug("URL: " + self.req.http.lastEffectiveURL)
+ m = re.match(self.__pattern__, self.req.http.lastEffectiveURL)
+ fileID = m.group('ID') if m else self.file_info('ID')
m = re.search(r'recaptcha/api/challenge\?k=(\w+)', self.html)
if m:
@@ -56,7 +60,7 @@ class ExtabitCom(SimpleHoster):
for i in range(5):
get_data = {"type": "recaptcha"}
get_data["challenge"], get_data["capture"] = recaptcha.challenge(captcha_key)
- response = json_loads(self.load("http://extabit.com/file/%s/" % (self.file_info['ID']), get = get_data))
+ response = json_loads(self.load("http://extabit.com/file/%s/" % fileID, get = get_data))
if "ok" in response:
self.correctCaptcha()
break
@@ -69,7 +73,7 @@ class ExtabitCom(SimpleHoster):
if not "href" in response: self.parseError('JSON')
- self.html = self.load("http://extabit.com/file/%s%s" % (self.file_info['ID'], response['href']))
+ self.html = self.load("http://extabit.com/file/%s%s" % (fileID, response['href']))
m = re.search(self.DOWNLOAD_LINK_PATTERN, self.html)
if not m:
self.parseError('Download URL')