summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UpstoreNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/UpstoreNet.py')
-rw-r--r--module/plugins/hoster/UpstoreNet.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/module/plugins/hoster/UpstoreNet.py b/module/plugins/hoster/UpstoreNet.py
index 4fcf6dcfa..ca8a85c6d 100644
--- a/module/plugins/hoster/UpstoreNet.py
+++ b/module/plugins/hoster/UpstoreNet.py
@@ -3,7 +3,7 @@
import re
from module.plugins.captcha.ReCaptcha import ReCaptcha
-from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
+from module.plugins.internal.SimpleHoster import SimpleHoster
class UpstoreNet(SimpleHoster):
@@ -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(self)
+ #: 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})
@@ -86,7 +86,3 @@ class UpstoreNet(SimpleHoster):
self.retry(wait_time=3600, reason=_("Upstore doesn't like us today"))
-
-
-getInfo = create_getInfo(UpstoreNet)
-