summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/Captcha9kw.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks/Captcha9kw.py')
-rwxr-xr-xmodule/plugins/hooks/Captcha9kw.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/module/plugins/hooks/Captcha9kw.py b/module/plugins/hooks/Captcha9kw.py
index c86f92972..28bce3d2b 100755
--- a/module/plugins/hooks/Captcha9kw.py
+++ b/module/plugins/hooks/Captcha9kw.py
@@ -13,8 +13,6 @@
You should have received a copy of the GNU General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>.
-
- @author: mkaay, RaNaN, zoidberg
"""
from __future__ import with_statement
@@ -31,7 +29,8 @@ from module.plugins.Hook import Hook
class Captcha9kw(Hook):
__name__ = "Captcha9kw"
__version__ = "0.09"
- __description__ = """Send captchas to 9kw.eu"""
+ __type__ = "hook"
+
__config__ = [("activated", "bool", "Activated", False),
("force", "bool", "Force CT even if client is connected", True),
("https", "bool", "Enable HTTPS", False),
@@ -43,11 +42,14 @@ class Captcha9kw(Hook):
False),
("timeout", "int", "Timeout (max. 300)", 300),
("passkey", "password", "API key", "")]
+
+ __description__ = """Send captchas to 9kw.eu"""
__author_name__ = "RaNaN"
__author_mail__ = "RaNaN@pyload.org"
API_URL = "://www.9kw.eu/index.cgi"
+
def setup(self):
self.API_URL = "https" + self.API_URL if self.getConfig("https") else "http" + self.API_URL
self.info = {}