summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UpstoreNet.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/UpstoreNet.py
parent[Dereferer] Don't preload (diff)
downloadpyload-c9b42f02f83a95d7741eee96247466d3b610b159.tar.xz
self.html -> self.data
Diffstat (limited to 'module/plugins/hoster/UpstoreNet.py')
-rw-r--r--module/plugins/hoster/UpstoreNet.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hoster/UpstoreNet.py b/module/plugins/hoster/UpstoreNet.py
index f57fd6519..55efcba0f 100644
--- a/module/plugins/hoster/UpstoreNet.py
+++ b/module/plugins/hoster/UpstoreNet.py
@@ -31,14 +31,14 @@ class UpstoreNet(SimpleHoster):
def handle_free(self, pyfile):
#: STAGE 1: get link to continue
- m = re.search(self.CHASH_PATTERN, self.html)
+ m = re.search(self.CHASH_PATTERN, self.data)
if m is None:
self.error(_("CHASH_PATTERN not found"))
chash = m.group(1)
self.log_debug("Read hash " + chash)
#: Continue to stage2
post_data = {'hash': chash, 'free': 'Slow download'}
- self.html = self.load(pyfile.url, post=post_data)
+ self.data = self.load(pyfile.url, post=post_data)
#: STAGE 2: solv captcha and wait
#: First get the infos we need: recaptcha key and wait time
@@ -46,7 +46,7 @@ class UpstoreNet(SimpleHoster):
#: Try the captcha 5 times
for i in xrange(5):
- m = re.search(self.WAIT_PATTERN, self.html)
+ m = re.search(self.WAIT_PATTERN, self.data)
if m is None:
self.error(_("Wait pattern not found"))
wait_time = int(m.group(1))
@@ -59,10 +59,10 @@ class UpstoreNet(SimpleHoster):
post_data.update({'recaptcha_challenge_field': challenge,
'recaptcha_response_field' : response})
- self.html = self.load(pyfile.url, post=post_data)
+ self.data = self.load(pyfile.url, post=post_data)
#: STAGE 3: get direct link
- m = re.search(self.LINK_FREE_PATTERN, self.html, re.S)
+ m = re.search(self.LINK_FREE_PATTERN, self.data, re.S)
if m is not None:
break