diff options
author | 2015-04-20 22:24:43 +0200 | |
---|---|---|
committer | 2015-04-20 22:24:43 +0200 | |
commit | 919b6dacac69459c64239c3d48ccc435a18b049c (patch) | |
tree | af4b6fb3c49b1f79960a810c3963681f8be86b3f /pyload/plugin/hook/ImageTyperz.py | |
parent | add log warnings by using of deprecated features (diff) | |
download | pyload-919b6dacac69459c64239c3d48ccc435a18b049c.tar.xz |
Improve getClassName
Diffstat (limited to 'pyload/plugin/hook/ImageTyperz.py')
-rw-r--r-- | pyload/plugin/hook/ImageTyperz.py | 6 |
1 files changed, 3 insertions, 3 deletions
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'), |