diff options
| author | 2015-06-17 18:59:20 +0200 | |
|---|---|---|
| committer | 2015-06-24 22:42:40 +0200 | |
| commit | 20b6a2ec022202b0efb6cb69415239fb8f4d1445 (patch) | |
| tree | fdbb3ad42854144b1cace0221145a472b36ef84d /module/plugins/hoster/UpstoreNet.py | |
| parent | Spare code cosmetics (diff) | |
| download | pyload-20b6a2ec022202b0efb6cb69415239fb8f4d1445.tar.xz | |
Spare code cosmetics (2)
Diffstat (limited to 'module/plugins/hoster/UpstoreNet.py')
| -rw-r--r-- | module/plugins/hoster/UpstoreNet.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/UpstoreNet.py b/module/plugins/hoster/UpstoreNet.py index e7b6d044f..342009c98 100644 --- a/module/plugins/hoster/UpstoreNet.py +++ b/module/plugins/hoster/UpstoreNet.py @@ -34,7 +34,7 @@ class UpstoreNet(SimpleHoster): self.error(_("CHASH_PATTERN not found")) chash = m.group(1) self.logDebug("Read hash " + chash) - # continue to stage2 + #: continue to stage2 post_data = {'hash': chash, 'free': 'Slow download'} self.html = self.load(pyfile.url, post=post_data) @@ -42,17 +42,17 @@ class UpstoreNet(SimpleHoster): # first get the infos we need: recaptcha key and wait time recaptcha = ReCaptcha(self) - # try the captcha 5 times + #: try the captcha 5 times for i in xrange(5): m = re.search(self.WAIT_PATTERN, self.html) if m is None: self.error(_("Wait pattern not found")) wait_time = int(m.group(1)) - # then, do the waiting + #: then, do the waiting self.wait(wait_time) - # then, handle the captcha + #: then, handle the captcha response, challenge = recaptcha.challenge() post_data.update({'recaptcha_challenge_field': challenge, 'recaptcha_response_field' : response}) |
