diff options
author | 2016-02-17 22:20:25 +0100 | |
---|---|---|
committer | 2016-02-17 22:20:25 +0100 | |
commit | ee4424e5c000a14d8afa9abe5085a723ac88ef5b (patch) | |
tree | 5c195cf525cb76d971603cf8aa69d510ee441b68 /module/plugins/hooks | |
parent | [SimpleHoster] code cosmetics (diff) | |
download | pyload-ee4424e5c000a14d8afa9abe5085a723ac88ef5b.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r-- | module/plugins/hooks/Captcha9Kw.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hooks/Captcha9Kw.py b/module/plugins/hooks/Captcha9Kw.py index b928c5992..715e1f5c6 100644 --- a/module/plugins/hooks/Captcha9Kw.py +++ b/module/plugins/hooks/Captcha9Kw.py @@ -14,7 +14,7 @@ from module.plugins.internal.misc import threaded class Captcha9Kw(Addon): __name__ = "Captcha9Kw" __type__ = "hook" - __version__ = "0.34" + __version__ = "0.35" __status__ = "testing" __config__ = [("activated" , "bool" , "Activated" , False ), @@ -213,10 +213,10 @@ class Captcha9Kw(Addon): def _captcha_response(self, task, correct): - type = "correct" if correct else "refund" + request_type = "correct" if correct else "refund" if 'ticket' not in task.data: - self.log_debug("No CaptchaID for %s request (task: %s)" % (type, task)) + self.log_debug("No CaptchaID for %s request (task: %s)" % (request_type, task)) return passkey = self.config.get('passkey') @@ -231,14 +231,14 @@ class Captcha9Kw(Addon): 'source' : "pyload", 'id' : task.data['ticket']}) - self.log_debug("Request %s: %s" % (type, res)) + self.log_debug("Request %s: %s" % (request_type, res)) if res == "OK": break time.sleep(5) else: - self.log_debug("Could not send %s request: %s" % (type, res)) + self.log_debug("Could not send %s request: %s" % (request_type, res)) def captcha_correct(self, task): |