summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hook
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/hook')
-rw-r--r--pyload/plugin/hook/BypassCaptcha.py8
-rw-r--r--pyload/plugin/hook/CaptchaBrotherhood.py4
-rw-r--r--pyload/plugin/hook/DeathByCaptcha.py4
-rw-r--r--pyload/plugin/hook/ImageTyperz.py6
4 files changed, 11 insertions, 11 deletions
diff --git a/pyload/plugin/hook/BypassCaptcha.py b/pyload/plugin/hook/BypassCaptcha.py
index e3fae426e..545ec5e31 100644
--- a/pyload/plugin/hook/BypassCaptcha.py
+++ b/pyload/plugin/hook/BypassCaptcha.py
@@ -104,21 +104,21 @@ class BypassCaptcha(Hook):
if self.getCredits() > 0:
task.handler.append(self)
- task.data['service'] = self.__class__.__name__
+ task.data['service'] = self.getClassName()
task.setWaiting(100)
self._processCaptcha(task)
else:
- self.logInfo(_("Your %s account has not enough credits") % self.__class__.__name__)
+ self.logInfo(_("Your %s account has not enough credits") % self.getClassName())
def captchaCorrect(self, task):
- if task.data['service'] == self.__class__.__name__ and "ticket" in task.data:
+ if task.data['service'] == self.getClassName() and "ticket" in task.data:
self.respond(task.data['ticket'], True)
def captchaInvalid(self, task):
- if task.data['service'] == self.__class__.__name__ and "ticket" in task.data:
+ if task.data['service'] == self.getClassName() and "ticket" in task.data:
self.respond(task.data['ticket'], False)
diff --git a/pyload/plugin/hook/CaptchaBrotherhood.py b/pyload/plugin/hook/CaptchaBrotherhood.py
index 15338b0af..97e1ff25f 100644
--- a/pyload/plugin/hook/CaptchaBrotherhood.py
+++ b/pyload/plugin/hook/CaptchaBrotherhood.py
@@ -147,7 +147,7 @@ class CaptchaBrotherhood(Hook):
if self.getCredits() > 10:
task.handler.append(self)
- task.data['service'] = self.__class__.__name__
+ task.data['service'] = self.getClassName()
task.setWaiting(100)
self._processCaptcha(task)
else:
@@ -155,7 +155,7 @@ class CaptchaBrotherhood(Hook):
def captchaInvalid(self, task):
- if task.data['service'] == self.__class__.__name__ and "ticket" in task.data:
+ if task.data['service'] == self.getClassName() and "ticket" in task.data:
res = self.api_response("complainCaptcha", task.data['ticket'])
diff --git a/pyload/plugin/hook/DeathByCaptcha.py b/pyload/plugin/hook/DeathByCaptcha.py
index b28848422..71d1ddb0a 100644
--- a/pyload/plugin/hook/DeathByCaptcha.py
+++ b/pyload/plugin/hook/DeathByCaptcha.py
@@ -188,13 +188,13 @@ class DeathByCaptcha(Hook):
if balance > rate:
task.handler.append(self)
- task.data['service'] = self.__class__.__name__
+ task.data['service'] = self.getClassName()
task.setWaiting(180)
self._processCaptcha(task)
def captchaInvalid(self, task):
- if task.data['service'] == self.__class__.__name__ and "ticket" in task.data:
+ if task.data['service'] == self.getClassName() and "ticket" in task.data:
try:
res = self.api_response("captcha/%d/report" % task.data['ticket'], True)
diff --git a/pyload/plugin/hook/ImageTyperz.py b/pyload/plugin/hook/ImageTyperz.py
index 5dadc09f1..641016546 100644
--- a/pyload/plugin/hook/ImageTyperz.py
+++ b/pyload/plugin/hook/ImageTyperz.py
@@ -118,16 +118,16 @@ class ImageTyperz(Hook):
if self.getCredits() > 0:
task.handler.append(self)
- task.data['service'] = self.__class__.__name__
+ task.data['service'] = self.getClassName()
task.setWaiting(100)
self._processCaptcha(task)
else:
- self.logInfo(_("Your %s account has not enough credits") % self.__class__.__name__)
+ self.logInfo(_("Your %s account has not enough credits") % self.getClassName())
def captchaInvalid(self, task):
- if task.data['service'] == self.__class__.__name__ and "ticket" in task.data:
+ if task.data['service'] == self.getClassName() and "ticket" in task.data:
res = getURL(self.RESPOND_URL,
post={'action': "SETBADIMAGE",
'username': self.getConfig('username'),