summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hook/ImageTyperz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-13 08:21:50 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-13 08:21:50 +0200
commit486adc1874e463b1563ad2394b216faff388b10d (patch)
tree58009056cb67e35930d49a9dd6af45adf6a8d434 /pyload/plugin/hook/ImageTyperz.py
parentFix https://github.com/pyload/pyload/issues/1349 (diff)
downloadpyload-486adc1874e463b1563ad2394b216faff388b10d.tar.xz
Prepare plugins to merging from stable
Diffstat (limited to 'pyload/plugin/hook/ImageTyperz.py')
-rw-r--r--pyload/plugin/hook/ImageTyperz.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/pyload/plugin/hook/ImageTyperz.py b/pyload/plugin/hook/ImageTyperz.py
index ca5e02559..a7c3389c1 100644
--- a/pyload/plugin/hook/ImageTyperz.py
+++ b/pyload/plugin/hook/ImageTyperz.py
@@ -30,17 +30,17 @@ class ImageTyperzException(Exception):
class ImageTyperz(Hook):
- __name = "ImageTyperz"
- __type = "hook"
- __version = "0.06"
+ __name__ = "ImageTyperz"
+ __type__ = "hook"
+ __version__ = "0.06"
- __config = [("username", "str", "Username", ""),
+ __config__ = [("username", "str", "Username", ""),
("passkey", "password", "Password", ""),
("force", "bool", "Force IT even if client is connected", False)]
- __description = """Send captchas to ImageTyperz.com"""
- __license = "GPLv3"
- __authors = [("RaNaN" , "RaNaN@pyload.org" ),
+ __description__ = """Send captchas to ImageTyperz.com"""
+ __license__ = "GPLv3"
+ __authors__ = [("RaNaN" , "RaNaN@pyload.org" ),
("zoidberg", "zoidberg@mujmail.cz")]
@@ -118,16 +118,16 @@ class ImageTyperz(Hook):
if self.getCredits() > 0:
task.handler.append(self)
- task.data['service'] = self.__name
+ task.data['service'] = self.__name__
task.setWaiting(100)
self._processCaptcha(task)
else:
- self.logInfo(_("Your %s account has not enough credits") % self.__name)
+ self.logInfo(_("Your %s account has not enough credits") % self.__name__)
def captchaInvalid(self, task):
- if task.data['service'] == self.__name and "ticket" in task.data:
+ if task.data['service'] == self.__name__ and "ticket" in task.data:
res = getURL(self.RESPOND_URL,
post={'action': "SETBADIMAGE",
'username': self.getConfig('username'),