summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hook/DeathByCaptcha.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-16 21:02:39 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-16 21:02:39 +0200
commitbdb90b74ed973e9d61c9c6fd35d98ffe4c2d4c20 (patch)
tree896ff1eaae9151d83be150735c96a37a61d2d038 /pyload/plugin/hook/DeathByCaptcha.py
parent[api] Improve getConfigValue (diff)
parentfixed: more typos (diff)
downloadpyload-bdb90b74ed973e9d61c9c6fd35d98ffe4c2d4c20.tar.xz
Merge pull request #5 from ardi69/0.4.10
fix: assignJob and typos (__name vs. __name__) [2]
Diffstat (limited to 'pyload/plugin/hook/DeathByCaptcha.py')
-rw-r--r--pyload/plugin/hook/DeathByCaptcha.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyload/plugin/hook/DeathByCaptcha.py b/pyload/plugin/hook/DeathByCaptcha.py
index 4b77c8718..b28848422 100644
--- a/pyload/plugin/hook/DeathByCaptcha.py
+++ b/pyload/plugin/hook/DeathByCaptcha.py
@@ -59,8 +59,8 @@ class DeathByCaptcha(Hook):
__description = """Send captchas to DeathByCaptcha.com"""
__license = "GPLv3"
- __authors = [("RaNaN" , "RaNaN@pyload.org" ),
- ("zoidberg", "zoidberg@mujmail.cz")]
+ __authors = [("RaNaN" , "RaNaN@pyload.org"),
+ ("zoidberg", "zoidberg@mujmail.cz")]
API_URL = "http://api.dbcapi.me/api/"
@@ -188,13 +188,13 @@ class DeathByCaptcha(Hook):
if balance > rate:
task.handler.append(self)
- task.data['service'] = self.__name
+ task.data['service'] = self.__class__.__name__
task.setWaiting(180)
self._processCaptcha(task)
def captchaInvalid(self, task):
- if task.data['service'] == self.__name and "ticket" in task.data:
+ if task.data['service'] == self.__class__.__name__ and "ticket" in task.data:
try:
res = self.api_response("captcha/%d/report" % task.data['ticket'], True)