summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-29 22:42:20 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-29 22:42:20 +0100
commit265c1a0711e5e50b8507ba35253f2dc55e01f88e (patch)
treeeb67565d511b3b6c84160d27be2f24a590b24a03 /module/plugins/internal
parentclient side settings save, working dl button on dashboard (diff)
downloadpyload-265c1a0711e5e50b8507ba35253f2dc55e01f88e.tar.xz
fix in update file info, moved recaptcha back
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/ReCaptcha.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/module/plugins/internal/ReCaptcha.py b/module/plugins/internal/ReCaptcha.py
deleted file mode 100644
index 6f7ebe22c..000000000
--- a/module/plugins/internal/ReCaptcha.py
+++ /dev/null
@@ -1,21 +0,0 @@
-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")
-