diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-12-20 18:43:15 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-12-27 22:46:01 +0100 |
commit | 5deded62d94c04be64d34f6b67d07803eea9b6bf (patch) | |
tree | a33f82a6208b3a922bf5e1883f134a1fb86a9217 /module/plugins/hoster/UpstoreNet.py | |
parent | Update addons (diff) | |
download | pyload-5deded62d94c04be64d34f6b67d07803eea9b6bf.tar.xz |
Spare code cosmetics
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 fbf03b7d3..ca8a85c6d 100644 --- a/module/plugins/hoster/UpstoreNet.py +++ b/module/plugins/hoster/UpstoreNet.py @@ -42,8 +42,8 @@ class UpstoreNet(SimpleHoster): self.check_errors() #: STAGE 2: solv captcha and wait - #: First get the infos we need: recaptcha key and wait time - recaptcha = ReCaptcha(pyfile) + #: First get the infos we need: self.captcha key and wait time + self.captcha = ReCaptcha(pyfile) #: Try the captcha 5 times for i in xrange(5): @@ -56,7 +56,7 @@ class UpstoreNet(SimpleHoster): self.wait(wait_time) #: then, handle the captcha - response, challenge = recaptcha.challenge() + response, challenge = self.captcha.challenge() post_data.update({'recaptcha_challenge_field': challenge, 'recaptcha_response_field' : response}) @@ -85,4 +85,4 @@ class UpstoreNet(SimpleHoster): self.wantReconnect = True self.retry(wait_time=3600, reason=_("Upstore doesn't like us today")) - + |