summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2014-03-31 15:18:54 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-06-28 02:49:59 +0200
commit554f7f7bfc552b08497c1c4dec71c5de2e611cb6 (patch)
tree4020e8a6566dca609f877e20618d6d6a7435fcd1
parentFix EOF (diff)
downloadpyload-554f7f7bfc552b08497c1c4dec71c5de2e611cb6.tar.xz
Removed deprecated module.
internal/CaptchaService must be used instead
-rw-r--r--module/plugins/ReCaptcha.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/module/plugins/ReCaptcha.py b/module/plugins/ReCaptcha.py
deleted file mode 100644
index 3e8b33fbd..000000000
--- a/module/plugins/ReCaptcha.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# -*- coding: utf-8 -*-
-
-import re
-
-class ReCaptcha():
- def __init__(self, plugin):
- self.plugin = plugin
-
- def challenge(self, id):
- js = self.plugin.req.load("http://www.google.com/recaptcha/api/challenge", get={"k":id}, cookies=True)
-
- try:
- challenge = re.search("challenge : '(.*?)',", js).group(1)
- server = re.search("server : '(.*?)',", js).group(1)
- except:
- self.plugin.fail("recaptcha error")
- result = self.result(server,challenge)
-
- return challenge, result
-
- def result(self, server, challenge):
- return self.plugin.decryptCaptcha("%simage"%server, get={"c":challenge}, cookies=True, imgtype="jpg")