summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r--module/plugins/hooks/AndroidPhoneNotify.py2
-rw-r--r--module/plugins/hooks/AntiStandby.py2
-rw-r--r--module/plugins/hooks/AntiVirus.py2
-rw-r--r--module/plugins/hooks/BypassCaptcha.py8
-rw-r--r--module/plugins/hooks/Captcha9Kw.py2
-rw-r--r--module/plugins/hooks/CaptchaBrotherhood.py6
-rw-r--r--module/plugins/hooks/Checksum.py2
-rw-r--r--module/plugins/hooks/ClickNLoad.py2
-rw-r--r--module/plugins/hooks/DeathByCaptcha.py6
-rw-r--r--module/plugins/hooks/DeleteFinished.py2
-rw-r--r--module/plugins/hooks/DownloadScheduler.py2
-rw-r--r--module/plugins/hooks/ExpertDecoders.py2
-rw-r--r--module/plugins/hooks/ExternalScripts.py2
-rw-r--r--module/plugins/hooks/ExtractArchive.py6
-rw-r--r--module/plugins/hooks/HotFolder.py2
-rw-r--r--module/plugins/hooks/IRCInterface.py2
-rw-r--r--module/plugins/hooks/ImageTyperz.py6
-rw-r--r--module/plugins/hooks/JustPremium.py2
-rw-r--r--module/plugins/hooks/LinkdecrypterComHook.py2
-rw-r--r--module/plugins/hooks/LogMarker.py2
-rw-r--r--module/plugins/hooks/MergeFiles.py2
-rw-r--r--module/plugins/hooks/MultiHome.py2
-rw-r--r--module/plugins/hooks/RestartFailed.py2
-rw-r--r--module/plugins/hooks/SkipRev.py2
-rw-r--r--module/plugins/hooks/TransmissionRPC.py6
-rw-r--r--module/plugins/hooks/UnSkipOnFail.py2
-rw-r--r--module/plugins/hooks/UpdateManager.py2
-rw-r--r--module/plugins/hooks/UserAgentSwitcher.py2
-rw-r--r--module/plugins/hooks/WindowsPhoneNotify.py2
-rw-r--r--module/plugins/hooks/XFileSharingPro.py2
-rw-r--r--module/plugins/hooks/XMPPInterface.py2
31 files changed, 44 insertions, 44 deletions
diff --git a/module/plugins/hooks/AndroidPhoneNotify.py b/module/plugins/hooks/AndroidPhoneNotify.py
index 59c212b36..60e9297e1 100644
--- a/module/plugins/hooks/AndroidPhoneNotify.py
+++ b/module/plugins/hooks/AndroidPhoneNotify.py
@@ -6,7 +6,7 @@ from module.plugins.internal.Addon import Addon, Expose
class AndroidPhoneNotify(Addon):
- __name = "AndroidPhoneNotify"
+ __name__ = "AndroidPhoneNotify"
__type__ = "hook"
__version__ = "0.11"
__status__ = "testing"
diff --git a/module/plugins/hooks/AntiStandby.py b/module/plugins/hooks/AntiStandby.py
index 4ae0c2ea6..aa7a028a5 100644
--- a/module/plugins/hooks/AntiStandby.py
+++ b/module/plugins/hooks/AntiStandby.py
@@ -25,7 +25,7 @@ class Kernel32(object):
class AntiStandby(Addon):
- __name = "AntiStandby"
+ __name__ = "AntiStandby"
__type__ = "hook"
__version__ = "0.12"
__status__ = "testing"
diff --git a/module/plugins/hooks/AntiVirus.py b/module/plugins/hooks/AntiVirus.py
index fcdca4e43..c68e86c77 100644
--- a/module/plugins/hooks/AntiVirus.py
+++ b/module/plugins/hooks/AntiVirus.py
@@ -15,7 +15,7 @@ from module.utils import fs_encode, save_join as fs_join
class AntiVirus(Addon):
- __name = "AntiVirus"
+ __name__ = "AntiVirus"
__type__ = "hook"
__version__ = "0.14"
__status__ = "testing"
diff --git a/module/plugins/hooks/BypassCaptcha.py b/module/plugins/hooks/BypassCaptcha.py
index 2e1831860..df8562431 100644
--- a/module/plugins/hooks/BypassCaptcha.py
+++ b/module/plugins/hooks/BypassCaptcha.py
@@ -26,7 +26,7 @@ class BypassCaptchaException(Exception):
class BypassCaptcha(Addon):
- __name = "BypassCaptcha"
+ __name__ = "BypassCaptcha"
__type__ = "hook"
__version__ = "0.08"
__status__ = "testing"
@@ -106,7 +106,7 @@ class BypassCaptcha(Addon):
if self.get_credits() > 0:
task.handler.append(self)
- task.data['service'] = self.__name__
+ task.data['service'] = self.classname
task.setWaiting(100)
self._process_captcha(task)
@@ -115,12 +115,12 @@ class BypassCaptcha(Addon):
def captcha_correct(self, task):
- if task.data['service'] is self.__name__ and "ticket" in task.data:
+ if task.data['service'] is self.classname and "ticket" in task.data:
self.respond(task.data['ticket'], True)
def captcha_invalid(self, task):
- if task.data['service'] is self.__name__ and "ticket" in task.data:
+ if task.data['service'] is self.classname and "ticket" in task.data:
self.respond(task.data['ticket'], False)
diff --git a/module/plugins/hooks/Captcha9Kw.py b/module/plugins/hooks/Captcha9Kw.py
index 16a76a792..b2883534d 100644
--- a/module/plugins/hooks/Captcha9Kw.py
+++ b/module/plugins/hooks/Captcha9Kw.py
@@ -12,7 +12,7 @@ from module.plugins.internal.Addon import Addon, threaded
class Captcha9Kw(Addon):
- __name = "Captcha9Kw"
+ __name__ = "Captcha9Kw"
__type__ = "hook"
__version__ = "0.30"
__status__ = "testing"
diff --git a/module/plugins/hooks/CaptchaBrotherhood.py b/module/plugins/hooks/CaptchaBrotherhood.py
index 642bd23e6..24254ffbb 100644
--- a/module/plugins/hooks/CaptchaBrotherhood.py
+++ b/module/plugins/hooks/CaptchaBrotherhood.py
@@ -36,7 +36,7 @@ class CaptchaBrotherhoodException(Exception):
class CaptchaBrotherhood(Addon):
- __name = "CaptchaBrotherhood"
+ __name__ = "CaptchaBrotherhood"
__type__ = "hook"
__version__ = "0.10"
__status__ = "testing"
@@ -146,7 +146,7 @@ class CaptchaBrotherhood(Addon):
if self.get_credits() > 10:
task.handler.append(self)
- task.data['service'] = self.__name__
+ task.data['service'] = self.classname
task.setWaiting(100)
self._process_captcha(task)
else:
@@ -154,7 +154,7 @@ class CaptchaBrotherhood(Addon):
def captcha_invalid(self, task):
- if task.data['service'] is self.__name__ and "ticket" in task.data:
+ if task.data['service'] is self.classname and "ticket" in task.data:
res = self.api_response("complainCaptcha", task.data['ticket'])
diff --git a/module/plugins/hooks/Checksum.py b/module/plugins/hooks/Checksum.py
index 4b351f76f..4d0493212 100644
--- a/module/plugins/hooks/Checksum.py
+++ b/module/plugins/hooks/Checksum.py
@@ -36,7 +36,7 @@ def compute_checksum(local_file, algorithm):
class Checksum(Addon):
- __name = "Checksum"
+ __name__ = "Checksum"
__type__ = "hook"
__version__ = "0.22"
__status__ = "testing"
diff --git a/module/plugins/hooks/ClickNLoad.py b/module/plugins/hooks/ClickNLoad.py
index 8f2c1f36c..fa99ac12c 100644
--- a/module/plugins/hooks/ClickNLoad.py
+++ b/module/plugins/hooks/ClickNLoad.py
@@ -27,7 +27,7 @@ def forward(source, destination):
#@TODO: IPv6 support
class ClickNLoad(Addon):
- __name = "ClickNLoad"
+ __name__ = "ClickNLoad"
__type__ = "hook"
__version__ = "0.48"
__status__ = "testing"
diff --git a/module/plugins/hooks/DeathByCaptcha.py b/module/plugins/hooks/DeathByCaptcha.py
index c1f33be6d..00d6453a4 100644
--- a/module/plugins/hooks/DeathByCaptcha.py
+++ b/module/plugins/hooks/DeathByCaptcha.py
@@ -49,7 +49,7 @@ class DeathByCaptchaException(Exception):
class DeathByCaptcha(Addon):
- __name = "DeathByCaptcha"
+ __name__ = "DeathByCaptcha"
__type__ = "hook"
__version__ = "0.08"
__status__ = "testing"
@@ -187,13 +187,13 @@ class DeathByCaptcha(Addon):
if balance > rate:
task.handler.append(self)
- task.data['service'] = self.__name__
+ task.data['service'] = self.classname
task.setWaiting(180)
self._process_captcha(task)
def captcha_invalid(self, task):
- if task.data['service'] is self.__name__ and "ticket" in task.data:
+ if task.data['service'] is self.classname and "ticket" in task.data:
try:
res = self.api_response("captcha/%d/report" % task.data['ticket'], True)
diff --git a/module/plugins/hooks/DeleteFinished.py b/module/plugins/hooks/DeleteFinished.py
index 489591d1a..e72439c0a 100644
--- a/module/plugins/hooks/DeleteFinished.py
+++ b/module/plugins/hooks/DeleteFinished.py
@@ -5,7 +5,7 @@ from module.plugins.internal.Addon import Addon
class DeleteFinished(Addon):
- __name = "DeleteFinished"
+ __name__ = "DeleteFinished"
__type__ = "hook"
__version__ = "1.16"
__status__ = "testing"
diff --git a/module/plugins/hooks/DownloadScheduler.py b/module/plugins/hooks/DownloadScheduler.py
index f93410bc3..8454438a1 100644
--- a/module/plugins/hooks/DownloadScheduler.py
+++ b/module/plugins/hooks/DownloadScheduler.py
@@ -7,7 +7,7 @@ from module.plugins.internal.Addon import Addon
class DownloadScheduler(Addon):
- __name = "DownloadScheduler"
+ __name__ = "DownloadScheduler"
__type__ = "hook"
__version__ = "0.24"
__status__ = "testing"
diff --git a/module/plugins/hooks/ExpertDecoders.py b/module/plugins/hooks/ExpertDecoders.py
index 993a66067..e94a966f2 100644
--- a/module/plugins/hooks/ExpertDecoders.py
+++ b/module/plugins/hooks/ExpertDecoders.py
@@ -13,7 +13,7 @@ from module.plugins.internal.Addon import Addon, threaded
class ExpertDecoders(Addon):
- __name = "ExpertDecoders"
+ __name__ = "ExpertDecoders"
__type__ = "hook"
__version__ = "0.06"
__status__ = "testing"
diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py
index 694da4262..3459eb3aa 100644
--- a/module/plugins/hooks/ExternalScripts.py
+++ b/module/plugins/hooks/ExternalScripts.py
@@ -9,7 +9,7 @@ from module.utils import fs_encode, save_join as fs_join
class ExternalScripts(Addon):
- __name = "ExternalScripts"
+ __name__ = "ExternalScripts"
__type__ = "hook"
__version__ = "0.49"
__status__ = "testing"
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py
index 48ac029e5..034a4b81a 100644
--- a/module/plugins/hooks/ExtractArchive.py
+++ b/module/plugins/hooks/ExtractArchive.py
@@ -97,7 +97,7 @@ class ArchiveQueue(object):
class ExtractArchive(Addon):
- __name = "ExtractArchive"
+ __name__ = "ExtractArchive"
__type__ = "hook"
__version__ = "1.52"
__status__ = "testing"
@@ -162,7 +162,7 @@ class ExtractArchive(Addon):
self.log_warning(_("Could not activate: %s") % p, e)
if self.extractors:
- self.log_debug(*["Found %s %s" % (Extractor.__name, Extractor.VERSION) for Extractor in self.extractors])
+ self.log_debug(*["Found %s %s" % (Extractor.__name__, Extractor.VERSION) for Extractor in self.extractors])
self.extract_queued() #: Resume unfinished extractions
else:
self.log_info(_("No Extract plugins activated"))
@@ -293,7 +293,7 @@ class ExtractArchive(Addon):
for Extractor in self.extractors:
targets = Extractor.get_targets(files_ids)
if targets:
- self.log_debug("Targets for %s: %s" % (Extractor.__name, targets))
+ self.log_debug("Targets for %s: %s" % (Extractor.__name__, targets))
matched = True
for fname, fid, fout in targets:
diff --git a/module/plugins/hooks/HotFolder.py b/module/plugins/hooks/HotFolder.py
index 8863af871..c7631a1fc 100644
--- a/module/plugins/hooks/HotFolder.py
+++ b/module/plugins/hooks/HotFolder.py
@@ -11,7 +11,7 @@ from module.utils import fs_encode, save_join as fs_join
class HotFolder(Addon):
- __name = "HotFolder"
+ __name__ = "HotFolder"
__type__ = "hook"
__version__ = "0.19"
__status__ = "testing"
diff --git a/module/plugins/hooks/IRCInterface.py b/module/plugins/hooks/IRCInterface.py
index 9760d5afa..16640df0b 100644
--- a/module/plugins/hooks/IRCInterface.py
+++ b/module/plugins/hooks/IRCInterface.py
@@ -16,7 +16,7 @@ from module.utils import formatSize
class IRCInterface(Thread, Addon):
- __name = "IRCInterface"
+ __name__ = "IRCInterface"
__type__ = "hook"
__version__ = "0.17"
__status__ = "testing"
diff --git a/module/plugins/hooks/ImageTyperz.py b/module/plugins/hooks/ImageTyperz.py
index 5fec52eb7..86b1dae2b 100644
--- a/module/plugins/hooks/ImageTyperz.py
+++ b/module/plugins/hooks/ImageTyperz.py
@@ -30,7 +30,7 @@ class ImageTyperzException(Exception):
class ImageTyperz(Addon):
- __name = "ImageTyperz"
+ __name__ = "ImageTyperz"
__type__ = "hook"
__version__ = "0.08"
__status__ = "testing"
@@ -122,7 +122,7 @@ class ImageTyperz(Addon):
if self.get_credits() > 0:
task.handler.append(self)
- task.data['service'] = self.__name__
+ task.data['service'] = self.classname
task.setWaiting(100)
self._process_captcha(task)
@@ -131,7 +131,7 @@ class ImageTyperz(Addon):
def captcha_invalid(self, task):
- if task.data['service'] is self.__name__ and "ticket" in task.data:
+ if task.data['service'] is self.classname and "ticket" in task.data:
res = self.load(self.RESPOND_URL,
post={'action': "SETBADIMAGE",
'username': self.get_config('username'),
diff --git a/module/plugins/hooks/JustPremium.py b/module/plugins/hooks/JustPremium.py
index f33bcd015..f4c48cfa9 100644
--- a/module/plugins/hooks/JustPremium.py
+++ b/module/plugins/hooks/JustPremium.py
@@ -6,7 +6,7 @@ from module.plugins.internal.Addon import Addon
class JustPremium(Addon):
- __name = "JustPremium"
+ __name__ = "JustPremium"
__type__ = "hook"
__version__ = "0.24"
__status__ = "testing"
diff --git a/module/plugins/hooks/LinkdecrypterComHook.py b/module/plugins/hooks/LinkdecrypterComHook.py
index 077f132d4..1ef5bb72a 100644
--- a/module/plugins/hooks/LinkdecrypterComHook.py
+++ b/module/plugins/hooks/LinkdecrypterComHook.py
@@ -6,7 +6,7 @@ from module.plugins.internal.Addon import Addon
class LinkdecrypterComHook(Addon):
- __name = "LinkdecrypterCom"
+ __name__ = "LinkdecrypterCom"
__type__ = "hook"
__version__ = "1.08"
__status__ = "testing"
diff --git a/module/plugins/hooks/LogMarker.py b/module/plugins/hooks/LogMarker.py
index b4269164a..0efab602f 100644
--- a/module/plugins/hooks/LogMarker.py
+++ b/module/plugins/hooks/LogMarker.py
@@ -7,7 +7,7 @@ from module.plugins.internal.Plugin import seconds_to_nexthour
class LogMarker(Addon):
- __name = "LogMarker"
+ __name__ = "LogMarker"
__type__ = "hook"
__version__ = "0.03"
__status__ = "testing"
diff --git a/module/plugins/hooks/MergeFiles.py b/module/plugins/hooks/MergeFiles.py
index f25380c18..a7d6fc7ba 100644
--- a/module/plugins/hooks/MergeFiles.py
+++ b/module/plugins/hooks/MergeFiles.py
@@ -10,7 +10,7 @@ from module.utils import save_join as fs_join
class MergeFiles(Addon):
- __name = "MergeFiles"
+ __name__ = "MergeFiles"
__type__ = "hook"
__version__ = "0.17"
__status__ = "testing"
diff --git a/module/plugins/hooks/MultiHome.py b/module/plugins/hooks/MultiHome.py
index 3ca3bf74d..90e8a60d2 100644
--- a/module/plugins/hooks/MultiHome.py
+++ b/module/plugins/hooks/MultiHome.py
@@ -42,7 +42,7 @@ class Interface(object):
class MultiHome(Addon):
- __name = "MultiHome"
+ __name__ = "MultiHome"
__type__ = "hook"
__version__ = "0.14"
__status__ = "testing"
diff --git a/module/plugins/hooks/RestartFailed.py b/module/plugins/hooks/RestartFailed.py
index f85ad51fd..74d570425 100644
--- a/module/plugins/hooks/RestartFailed.py
+++ b/module/plugins/hooks/RestartFailed.py
@@ -4,7 +4,7 @@ from module.plugins.internal.Addon import Addon
class RestartFailed(Addon):
- __name = "RestartFailed"
+ __name__ = "RestartFailed"
__type__ = "hook"
__version__ = "1.62"
__status__ = "testing"
diff --git a/module/plugins/hooks/SkipRev.py b/module/plugins/hooks/SkipRev.py
index fcf6a4a9d..891d2db6d 100644
--- a/module/plugins/hooks/SkipRev.py
+++ b/module/plugins/hooks/SkipRev.py
@@ -10,7 +10,7 @@ from module.plugins.internal.Addon import Addon
class SkipRev(Addon):
- __name = "SkipRev"
+ __name__ = "SkipRev"
__type__ = "hook"
__version__ = "0.34"
__status__ = "testing"
diff --git a/module/plugins/hooks/TransmissionRPC.py b/module/plugins/hooks/TransmissionRPC.py
index 7a1ad1659..9df19e320 100644
--- a/module/plugins/hooks/TransmissionRPC.py
+++ b/module/plugins/hooks/TransmissionRPC.py
@@ -12,7 +12,7 @@ from module.plugins.internal.Addon import Addon
class TransmissionRPC(Addon):
- __name = "TransmissionRPC"
+ __name__ = "TransmissionRPC"
__type__ = "hook"
__version__ = "0.12"
__status__ = "testing"
@@ -31,7 +31,7 @@ class TransmissionRPC(Addon):
def links_added(self, links, pid):
- pattern = re.compile(self.__pattern)
+ pattern = re.compile(self.__pattern__)
urls = [link for link in links if pattern.match(link)]
for url in urls:
@@ -42,7 +42,7 @@ class TransmissionRPC(Addon):
def send_to_transmission(self, url):
transmission_rpc_url = self.get_config('rpc_url')
- client_request_id = self.__name__ + "".join(random.choice('0123456789ABCDEF') for _i in xrange(4))
+ client_request_id = self.classname + "".join(random.choice('0123456789ABCDEF') for _i in xrange(4))
req = get_request()
try:
diff --git a/module/plugins/hooks/UnSkipOnFail.py b/module/plugins/hooks/UnSkipOnFail.py
index a0a2681aa..d467b8a01 100644
--- a/module/plugins/hooks/UnSkipOnFail.py
+++ b/module/plugins/hooks/UnSkipOnFail.py
@@ -5,7 +5,7 @@ from module.plugins.internal.Addon import Addon
class UnSkipOnFail(Addon):
- __name = "UnSkipOnFail"
+ __name__ = "UnSkipOnFail"
__type__ = "hook"
__version__ = "0.09"
__status__ = "testing"
diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py
index 34b992d5b..caebdaa9b 100644
--- a/module/plugins/hooks/UpdateManager.py
+++ b/module/plugins/hooks/UpdateManager.py
@@ -256,7 +256,7 @@ class UpdateManager(Addon):
if blacklist:
#@NOTE: Protect UpdateManager from self-removing
type_plugins = [(plugin['type'], plugin['name']) for plugin in blacklist \
- if plugin['name'] is not self.__name__ and plugin['type'] is not self.__type__]
+ if plugin['name'] is not self.classname and plugin['type'] is not self.__type__]
c = 1
l = len(type_plugins)
diff --git a/module/plugins/hooks/UserAgentSwitcher.py b/module/plugins/hooks/UserAgentSwitcher.py
index 4e714bf60..52f542268 100644
--- a/module/plugins/hooks/UserAgentSwitcher.py
+++ b/module/plugins/hooks/UserAgentSwitcher.py
@@ -7,7 +7,7 @@ from module.plugins.internal.Plugin import encode
class UserAgentSwitcher(Addon):
- __name = "UserAgentSwitcher"
+ __name__ = "UserAgentSwitcher"
__type__ = "hook"
__version__ = "0.11"
__status__ = "testing"
diff --git a/module/plugins/hooks/WindowsPhoneNotify.py b/module/plugins/hooks/WindowsPhoneNotify.py
index 62a8619c2..4343d16f2 100644
--- a/module/plugins/hooks/WindowsPhoneNotify.py
+++ b/module/plugins/hooks/WindowsPhoneNotify.py
@@ -7,7 +7,7 @@ from module.plugins.internal.Addon import Addon, Expose
class WindowsPhoneNotify(Addon):
- __name = "WindowsPhoneNotify"
+ __name__ = "WindowsPhoneNotify"
__type__ = "hook"
__version__ = "0.13"
__status__ = "testing"
diff --git a/module/plugins/hooks/XFileSharingPro.py b/module/plugins/hooks/XFileSharingPro.py
index ccb8980ed..92933fb11 100644
--- a/module/plugins/hooks/XFileSharingPro.py
+++ b/module/plugins/hooks/XFileSharingPro.py
@@ -6,7 +6,7 @@ from module.plugins.internal.Addon import Addon
class XFileSharingPro(Addon):
- __name = "XFileSharingPro"
+ __name__ = "XFileSharingPro"
__type__ = "hook"
__version__ = "0.44"
__status__ = "testing"
diff --git a/module/plugins/hooks/XMPPInterface.py b/module/plugins/hooks/XMPPInterface.py
index 0103fdcd6..811e2f5f4 100644
--- a/module/plugins/hooks/XMPPInterface.py
+++ b/module/plugins/hooks/XMPPInterface.py
@@ -10,7 +10,7 @@ from module.plugins.hooks.IRCInterface import IRCInterface
class XMPPInterface(IRCInterface, JabberClient):
- __name = "XMPPInterface"
+ __name__ = "XMPPInterface"
__type__ = "hook"
__version__ = "0.13"
__status__ = "testing"