summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/ExtabitCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-23 13:29:12 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-23 13:29:12 +0200
commitc9b42f02f83a95d7741eee96247466d3b610b159 (patch)
treeba642be8eeb25233e83763aab2aa6227b31c7885 /module/plugins/hoster/ExtabitCom.py
parent[Dereferer] Don't preload (diff)
downloadpyload-c9b42f02f83a95d7741eee96247466d3b610b159.tar.xz
self.html -> self.data
Diffstat (limited to 'module/plugins/hoster/ExtabitCom.py')
-rw-r--r--module/plugins/hoster/ExtabitCom.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/hoster/ExtabitCom.py b/module/plugins/hoster/ExtabitCom.py
index 02468a282..0eb69ba4d 100644
--- a/module/plugins/hoster/ExtabitCom.py
+++ b/module/plugins/hoster/ExtabitCom.py
@@ -32,13 +32,13 @@ class ExtabitCom(SimpleHoster):
def handle_free(self, pyfile):
- if r">Only premium users can download this file" in self.html:
+ if r">Only premium users can download this file" in self.data:
self.fail(_("Only premium users can download this file"))
- m = re.search(r"Next free download from your ip will be available in <b>(\d+)\s*minutes", self.html)
+ m = re.search(r"Next free download from your ip will be available in <b>(\d+)\s*minutes", self.data)
if m is not None:
self.wait(int(m.group(1)) * 60, True)
- elif "The daily downloads limit from your IP is exceeded" in self.html:
+ elif "The daily downloads limit from your IP is exceeded" in self.data:
self.log_warning(_("You have reached your daily downloads limit for today"))
self.wait(seconds_to_midnight(), True)
@@ -46,7 +46,7 @@ class ExtabitCom(SimpleHoster):
m = re.match(self.__pattern__, self.req.http.lastEffectiveURL)
fileID = m.group('ID') if m else self.info['pattern']['ID']
- m = re.search(r'recaptcha/api/challenge\?k=(\w+)', self.html)
+ m = re.search(r'recaptcha/api/challenge\?k=(\w+)', self.data)
if m is not None:
recaptcha = ReCaptcha(self)
captcha_key = m.group(1)
@@ -66,9 +66,9 @@ class ExtabitCom(SimpleHoster):
if not "href" in res:
self.error(_("Bad JSON response"))
- self.html = self.load("http://extabit.com/file/%s%s" % (fileID, res['href']))
+ self.data = self.load("http://extabit.com/file/%s%s" % (fileID, res['href']))
- m = re.search(self.LINK_FREE_PATTERN, self.html)
+ m = re.search(self.LINK_FREE_PATTERN, self.data)
if m is None:
self.error(_("LINK_FREE_PATTERN not found"))