summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/CloudzillaTo.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/CloudzillaTo.py
parent[Dereferer] Don't preload (diff)
downloadpyload-c9b42f02f83a95d7741eee96247466d3b610b159.tar.xz
self.html -> self.data
Diffstat (limited to 'module/plugins/hoster/CloudzillaTo.py')
-rw-r--r--module/plugins/hoster/CloudzillaTo.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hoster/CloudzillaTo.py b/module/plugins/hoster/CloudzillaTo.py
index 6f6242eec..cf276e6dd 100644
--- a/module/plugins/hoster/CloudzillaTo.py
+++ b/module/plugins/hoster/CloudzillaTo.py
@@ -27,24 +27,24 @@ class CloudzillaTo(SimpleHoster):
def check_errors(self):
- if re.search(self.PASSWORD_PATTERN, self.html):
+ if re.search(self.PASSWORD_PATTERN, self.data):
pw = self.get_password()
if pw:
- self.html = self.load(self.pyfile.url, get={'key': pw})
+ self.data = self.load(self.pyfile.url, get={'key': pw})
else:
self.fail(_("Missing password"))
- if re.search(self.PASSWORD_PATTERN, self.html):
+ if re.search(self.PASSWORD_PATTERN, self.data):
self.retry(msg="Wrong password")
else:
return super(CloudzillaTo, self).check_errors()
def handle_free(self, pyfile):
- self.html = self.load("http://www.cloudzilla.to/generateticket/",
+ self.data = self.load("http://www.cloudzilla.to/generateticket/",
post={'file_id': self.info['pattern']['ID'], 'key': self.get_password()})
- ticket = dict(re.findall(r'<(.+?)>([^<>]+?)</', self.html))
+ ticket = dict(re.findall(r'<(.+?)>([^<>]+?)</', self.data))
self.log_debug(ticket)