summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hadrien Theveneau <theveneau@gmail.com> 2015-10-08 22:23:16 +0200
committerGravatar Hadrien Theveneau <theveneau@gmail.com> 2015-10-28 02:52:19 +0100
commit7f19e76b0e58dec7e5715d90350dc5313f659ca1 (patch)
tree1103f7ca8ce0387adf98eefb8b7fc44f2f50144f
parentAddition of captcha code in debug messages in DlProtect.py (diff)
downloadpyload-7f19e76b0e58dec7e5715d90350dc5313f659ca1.tar.xz
Addition of some debug messages in DlProtectCom.py and Captcha.py
-rw-r--r--module/plugins/crypter/DlProtectCom.py2
-rw-r--r--module/plugins/internal/Captcha.py1
2 files changed, 3 insertions, 0 deletions
diff --git a/module/plugins/crypter/DlProtectCom.py b/module/plugins/crypter/DlProtectCom.py
index 7c30dbe9d..32dfd4612 100644
--- a/module/plugins/crypter/DlProtectCom.py
+++ b/module/plugins/crypter/DlProtectCom.py
@@ -59,6 +59,8 @@ class DlProtectCom(SimpleCrypter):
captcha_code = self.captcha.decrypt("http://www.dl-protect.com/captcha.php?key=" + m.group(1), input_type="gif")
self.log_debug("Captcha code: %s" % captcha_code)
post_req['secure'] = captcha_code
+ else:
+ self.log_debug("Captcha code requested but captcha not found")
self.data = self.load(self.pyfile.url, post=post_req)
diff --git a/module/plugins/internal/Captcha.py b/module/plugins/internal/Captcha.py
index 333602e29..d30271dd4 100644
--- a/module/plugins/internal/Captcha.py
+++ b/module/plugins/internal/Captcha.py
@@ -38,6 +38,7 @@ class Captcha(Plugin):
"""
Extend to build your custom anti-captcha ocr
"""
+ self.log_debug("This function does nothing")
pass