summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hook/DeathByCaptcha.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/hook/DeathByCaptcha.py')
-rw-r--r--pyload/plugin/hook/DeathByCaptcha.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pyload/plugin/hook/DeathByCaptcha.py b/pyload/plugin/hook/DeathByCaptcha.py
index 41d4d300b..0f0e66ea2 100644
--- a/pyload/plugin/hook/DeathByCaptcha.py
+++ b/pyload/plugin/hook/DeathByCaptcha.py
@@ -63,11 +63,14 @@ class DeathByCaptcha(Hook):
("zoidberg", "zoidberg@mujmail.cz")]
- interval = 0 #@TODO: Remove in 0.4.10
-
API_URL = "http://api.dbcapi.me/api/"
+ def activate(self):
+ if self.getConfig('ssl'):
+ self.API_URL = self.API_URL.replace("http://", "https://")
+
+
def api_response(self, api="captcha", post=False, multipart=False):
req = getRequest()
req.c.setopt(HTTPHEADER, ["Accept: application/json", "User-Agent: pyLoad %s" % self.core.version])