summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/BezvadataCz.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/BezvadataCz.py
parent[Dereferer] Don't preload (diff)
downloadpyload-c9b42f02f83a95d7741eee96247466d3b610b159.tar.xz
self.html -> self.data
Diffstat (limited to 'module/plugins/hoster/BezvadataCz.py')
-rw-r--r--module/plugins/hoster/BezvadataCz.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/module/plugins/hoster/BezvadataCz.py b/module/plugins/hoster/BezvadataCz.py
index 14613af4e..51607fd5a 100644
--- a/module/plugins/hoster/BezvadataCz.py
+++ b/module/plugins/hoster/BezvadataCz.py
@@ -32,36 +32,36 @@ class BezvadataCz(SimpleHoster):
def handle_free(self, pyfile):
#: Download button
- m = re.search(r'<a class="stahnoutSoubor".*?href="(.*?)"', self.html)
+ m = re.search(r'<a class="stahnoutSoubor".*?href="(.*?)"', self.data)
if m is None:
self.error(_("Page 1 URL not found"))
url = "http://bezvadata.cz%s" % m.group(1)
#: Captcha form
- self.html = self.load(url)
+ self.data = self.load(url)
self.check_errors()
action, inputs = self.parse_html_form('frm-stahnoutFreeForm')
if not inputs:
self.error(_("FreeForm"))
- m = re.search(r'<img src="data:image/png;base64,(.*?)"', self.html)
+ m = re.search(r'<img src="data:image/png;base64,(.*?)"', self.data)
if m is None:
self.retry_captcha()
inputs['captcha'] = self.captcha.decrypt_image(m.group(1).decode('base64'), input_type='png')
#: Download url
- self.html = self.load("http://bezvadata.cz%s" % action, post=inputs)
+ self.data = self.load("http://bezvadata.cz%s" % action, post=inputs)
self.check_errors()
- m = re.search(r'<a class="stahnoutSoubor2" href="(.*?)">', self.html)
+ m = re.search(r'<a class="stahnoutSoubor2" href="(.*?)">', self.data)
if m is None:
self.error(_("Page 2 URL not found"))
url = "http://bezvadata.cz%s" % m.group(1)
self.log_debug("DL URL %s" % url)
#: countdown
- m = re.search(r'id="countdown">(\d\d):(\d\d)<', self.html)
+ m = re.search(r'id="countdown">(\d\d):(\d\d)<', self.data)
wait_time = (int(m.group(1)) * 60 + int(m.group(2))) if m else 120
self.wait(wait_time, False)
@@ -69,9 +69,9 @@ class BezvadataCz(SimpleHoster):
def check_errors(self):
- if 'images/button-download-disable.png' in self.html:
+ if 'images/button-download-disable.png' in self.data:
self.wait(5 * 60, 24, _("Download limit reached")) #: Parallel dl limit
- elif '<div class="infobox' in self.html:
+ elif '<div class="infobox' in self.data:
self.temp_offline()
else:
return super(BezvadataCz, self).check_errors()