summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/Keep2ShareCc.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-18 06:09:04 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-27 22:37:54 +0100
commit58125cc90a78b67093b8213247ea647dd67dd9ca (patch)
tree69ae964377cbd45430bb78ade3930b820e867a55 /module/plugins/hoster/Keep2ShareCc.py
parent[OCR] self.image -> self.img (diff)
downloadpyload-58125cc90a78b67093b8213247ea647dd67dd9ca.tar.xz
Spare code fixes
Diffstat (limited to 'module/plugins/hoster/Keep2ShareCc.py')
-rw-r--r--module/plugins/hoster/Keep2ShareCc.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hoster/Keep2ShareCc.py b/module/plugins/hoster/Keep2ShareCc.py
index 560895eb9..8c5cc53cd 100644
--- a/module/plugins/hoster/Keep2ShareCc.py
+++ b/module/plugins/hoster/Keep2ShareCc.py
@@ -114,12 +114,13 @@ class Keep2ShareCc(SimpleHoster):
m = re.search(self.CAPTCHA_PATTERN, self.data)
self.log_debug("CAPTCHA_PATTERN found %s" % m)
+
if m is not None:
captcha_url = urlparse.urljoin("http://keep2s.cc/", m.group(1))
post_data['CaptchaForm[code]'] = self.captcha.decrypt(captcha_url)
else:
- recaptcha = ReCaptcha(self.pyfile)
- response, challenge = recaptcha.challenge()
+ self.captcha = ReCaptcha(self.pyfile)
+ response, challenge = self.captcha.challenge()
post_data.update({'recaptcha_challenge_field': challenge,
'recaptcha_response_field' : response})