summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UpstoreNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-20 18:43:15 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-27 22:46:01 +0100
commit5deded62d94c04be64d34f6b67d07803eea9b6bf (patch)
treea33f82a6208b3a922bf5e1883f134a1fb86a9217 /module/plugins/hoster/UpstoreNet.py
parentUpdate addons (diff)
downloadpyload-5deded62d94c04be64d34f6b67d07803eea9b6bf.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/UpstoreNet.py')
-rw-r--r--module/plugins/hoster/UpstoreNet.py8
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"))
-
+