summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-26 15:31:44 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-26 15:31:44 +0200
commit5c2da7d44de9c88a60f104ab853844fb02498a31 (patch)
tree75c651b77417a152f19f1ab591a8ac6089918b00 /module/plugins
parent[TusfilesNet] Added support for Premium users (diff)
downloadpyload-5c2da7d44de9c88a60f104ab853844fb02498a31.tar.xz
Remove ReCaptcha
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/ReCaptcha.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/module/plugins/ReCaptcha.py b/module/plugins/ReCaptcha.py
deleted file mode 100644
index 143ecfb83..000000000
--- a/module/plugins/ReCaptcha.py
+++ /dev/null
@@ -1,24 +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")