diff options
| author | 2014-12-09 01:13:05 +0100 | |
|---|---|---|
| committer | 2014-12-09 01:13:05 +0100 | |
| commit | e4c9e4ffc9e3f6bd6b16ce83796dc3d275d544f7 (patch) | |
| tree | ac66b8d581519a1db402b41567531d8e59be264d /module/plugins/hooks | |
| parent | [SkipRev] Update (2) (diff) | |
| download | pyload-e4c9e4ffc9e3f6bd6b16ce83796dc3d275d544f7.tar.xz | |
Don't start unused periodical in some addons
Diffstat (limited to 'module/plugins/hooks')
| -rw-r--r-- | module/plugins/hooks/BypassCaptcha.py | 7 | ||||
| -rwxr-xr-x | module/plugins/hooks/Captcha9kw.py | 7 | ||||
| -rw-r--r-- | module/plugins/hooks/CaptchaBrotherhood.py | 7 | ||||
| -rw-r--r-- | module/plugins/hooks/Checksum.py | 7 | ||||
| -rw-r--r-- | module/plugins/hooks/ClickAndLoad.py | 7 | ||||
| -rw-r--r-- | module/plugins/hooks/DeathByCaptcha.py | 7 | ||||
| -rw-r--r-- | module/plugins/hooks/DownloadScheduler.py | 7 | ||||
| -rw-r--r-- | module/plugins/hooks/ExpertDecoders.py | 7 | ||||
| -rw-r--r-- | module/plugins/hooks/ExternalScripts.py | 7 | ||||
| -rw-r--r-- | module/plugins/hooks/ExtractArchive.py | 7 | ||||
| -rw-r--r-- | module/plugins/hooks/IRCInterface.py | 7 | ||||
| -rw-r--r-- | module/plugins/hooks/ImageTyperz.py | 7 | ||||
| -rw-r--r-- | module/plugins/hooks/LinkdecrypterCom.py | 7 | ||||
| -rw-r--r-- | module/plugins/hooks/MergeFiles.py | 7 | ||||
| -rw-r--r-- | module/plugins/hooks/MultiHome.py | 7 | ||||
| -rw-r--r-- | module/plugins/hooks/SkipRev.py | 5 | ||||
| -rw-r--r-- | module/plugins/hooks/UnSkipOnFail.py | 7 | ||||
| -rw-r--r-- | module/plugins/hooks/WindowsPhoneToastNotify.py | 7 | ||||
| -rw-r--r-- | module/plugins/hooks/XFileSharingPro.py | 7 | 
19 files changed, 113 insertions, 18 deletions
| diff --git a/module/plugins/hooks/BypassCaptcha.py b/module/plugins/hooks/BypassCaptcha.py index 7e1ea6424..a32de7f42 100644 --- a/module/plugins/hooks/BypassCaptcha.py +++ b/module/plugins/hooks/BypassCaptcha.py @@ -29,7 +29,7 @@ class BypassCaptchaException(Exception):  class BypassCaptcha(Hook):      __name__    = "BypassCaptcha"      __type__    = "hook" -    __version__ = "0.04" +    __version__ = "0.05"      __config__ = [("force", "bool", "Force BC even if client is connected", False),                    ("passkey", "password", "Passkey", "")] @@ -48,6 +48,11 @@ class BypassCaptcha(Hook):      GETCREDITS_URL = "http://bypasscaptcha.com/ex_left.php" +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def setup(self):          self.info = {}  #@TODO: Remove in 0.4.10 diff --git a/module/plugins/hooks/Captcha9kw.py b/module/plugins/hooks/Captcha9kw.py index ead8aec9a..33ad00c49 100755 --- a/module/plugins/hooks/Captcha9kw.py +++ b/module/plugins/hooks/Captcha9kw.py @@ -17,7 +17,7 @@ from module.plugins.Hook import Hook  class Captcha9kw(Hook):      __name__    = "Captcha9kw"      __type__    = "hook" -    __version__ = "0.25" +    __version__ = "0.26"      __config__ = [("activated"     , "bool"    , "Activated"                                                                       , True                                                               ),                    ("ssl"           , "bool"    , "Use HTTPS"                                                                       , True                                                               ), @@ -41,6 +41,11 @@ class Captcha9kw(Hook):      API_URL = "http://www.9kw.eu/index.cgi" +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def setup(self):          self.info = {}  #@TODO: Remove in 0.4.10          if self.getConfig("ssl"): diff --git a/module/plugins/hooks/CaptchaBrotherhood.py b/module/plugins/hooks/CaptchaBrotherhood.py index 2ebeb1734..b6e38d8bb 100644 --- a/module/plugins/hooks/CaptchaBrotherhood.py +++ b/module/plugins/hooks/CaptchaBrotherhood.py @@ -39,7 +39,7 @@ class CaptchaBrotherhoodException(Exception):  class CaptchaBrotherhood(Hook):      __name__    = "CaptchaBrotherhood"      __type__    = "hook" -    __version__ = "0.05" +    __version__ = "0.06"      __config__ = [("username", "str", "Username", ""),                    ("force", "bool", "Force CT even if client is connected", False), @@ -54,6 +54,11 @@ class CaptchaBrotherhood(Hook):      API_URL = "http://www.captchabrotherhood.com/" +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def setup(self):          self.info = {}  #@TODO: Remove in 0.4.10 diff --git a/module/plugins/hooks/Checksum.py b/module/plugins/hooks/Checksum.py index eeda2d849..18036e020 100644 --- a/module/plugins/hooks/Checksum.py +++ b/module/plugins/hooks/Checksum.py @@ -40,7 +40,7 @@ def computeChecksum(local_file, algorithm):  class Checksum(Hook):      __name__    = "Checksum"      __type__    = "hook" -    __version__ = "0.14" +    __version__ = "0.15"      __config__ = [("check_checksum", "bool", "Check checksum? (If False only size will be verified)", True),                    ("check_action", "fail;retry;nothing", "What to do if check fails?", "retry"), @@ -62,6 +62,11 @@ class Checksum(Hook):                 'default': r'^(?P<hash>[0-9A-Fa-f]+)\s+\*?(?P<name>.+)$'} +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def coreReady(self):          if not self.getConfig("check_checksum"):              self.logInfo(_("Checksum validation is disabled in plugin configuration")) diff --git a/module/plugins/hooks/ClickAndLoad.py b/module/plugins/hooks/ClickAndLoad.py index c9c0f60c0..27d99c71c 100644 --- a/module/plugins/hooks/ClickAndLoad.py +++ b/module/plugins/hooks/ClickAndLoad.py @@ -52,7 +52,7 @@ def forward(source, destination):  class ClickAndLoad(Hook):      __name__    = "ClickAndLoad"      __type__    = "hook" -    __version__ = "0.22" +    __version__ = "0.23"      __config__ = [("activated", "bool", "Activated", True),                    ("extern", "bool", "Allow external link adding", False)] @@ -63,6 +63,11 @@ class ClickAndLoad(Hook):                         ("mkaay", "mkaay@mkaay.de")] +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def coreReady(self):          self.port = int(self.config['webinterface']['port'])          if self.config['webinterface']['activated']: diff --git a/module/plugins/hooks/DeathByCaptcha.py b/module/plugins/hooks/DeathByCaptcha.py index df09769ce..f03ac4567 100644 --- a/module/plugins/hooks/DeathByCaptcha.py +++ b/module/plugins/hooks/DeathByCaptcha.py @@ -52,7 +52,7 @@ class DeathByCaptchaException(Exception):  class DeathByCaptcha(Hook):      __name__    = "DeathByCaptcha"      __type__    = "hook" -    __version__ = "0.03" +    __version__ = "0.04"      __config__ = [("username", "str", "Username", ""),                    ("passkey", "password", "Password", ""), @@ -67,6 +67,11 @@ class DeathByCaptcha(Hook):      API_URL = "http://api.dbcapi.me/api/" +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def setup(self):          self.info = {}  #@TODO: Remove in 0.4.10 diff --git a/module/plugins/hooks/DownloadScheduler.py b/module/plugins/hooks/DownloadScheduler.py index 14884426f..4996e212d 100644 --- a/module/plugins/hooks/DownloadScheduler.py +++ b/module/plugins/hooks/DownloadScheduler.py @@ -10,7 +10,7 @@ from module.plugins.Hook import Hook  class DownloadScheduler(Hook):      __name__    = "DownloadScheduler"      __type__    = "hook" -    __version__ = "0.21" +    __version__ = "0.22"      __config__ = [("timetable", "str", "List time periods as hh:mm full or number(kB/s)",                     "0:00 full, 7:00 250, 10:00 0, 17:00 150"), @@ -22,6 +22,11 @@ class DownloadScheduler(Hook):                         ("stickell", "l.stickell@yahoo.it")] +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def setup(self):          self.cb = None  # callback to scheduler job; will be by removed hookmanager when hook unloaded diff --git a/module/plugins/hooks/ExpertDecoders.py b/module/plugins/hooks/ExpertDecoders.py index 1b9459eb6..1784a270c 100644 --- a/module/plugins/hooks/ExpertDecoders.py +++ b/module/plugins/hooks/ExpertDecoders.py @@ -15,7 +15,7 @@ from module.plugins.Hook import Hook  class ExpertDecoders(Hook):      __name__    = "ExpertDecoders"      __type__    = "hook" -    __version__ = "0.01" +    __version__ = "0.02"      __config__ = [("force", "bool", "Force CT even if client is connected", False),                    ("passkey", "password", "Access key", "")] @@ -29,6 +29,11 @@ class ExpertDecoders(Hook):      API_URL = "http://www.fasttypers.org/imagepost.ashx" +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def setup(self):          self.info = {}  #@TODO: Remove in 0.4.10 diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py index 5db2037fa..a35e47c03 100644 --- a/module/plugins/hooks/ExternalScripts.py +++ b/module/plugins/hooks/ExternalScripts.py @@ -13,7 +13,7 @@ from module.utils import save_join  class ExternalScripts(Hook):      __name__    = "ExternalScripts"      __type__    = "hook" -    __version__ = "0.24" +    __version__ = "0.25"      __config__ = [("activated", "bool", "Activated", True)] @@ -29,6 +29,11 @@ class ExternalScripts(Hook):                    "allDownloadsFinished", "allDownloadsProcessed"] +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def setup(self):          self.scripts = {} diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py index 07db13aa1..fc77dbdf6 100644 --- a/module/plugins/hooks/ExtractArchive.py +++ b/module/plugins/hooks/ExtractArchive.py @@ -59,7 +59,7 @@ from module.utils import save_join, fs_encode  class ExtractArchive(Hook):      __name__    = "ExtractArchive"      __type__    = "hook" -    __version__ = "0.18" +    __version__ = "0.19"      __config__ = [("activated", "bool", "Activated", True),                    ("fullpath", "bool", "Extract full path", True), @@ -83,6 +83,11 @@ class ExtractArchive(Hook):      event_list = ["allDownloadsProcessed"] +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def setup(self):          self.plugins = []          self.passwords = [] diff --git a/module/plugins/hooks/IRCInterface.py b/module/plugins/hooks/IRCInterface.py index 98edc2f7f..efd4e411d 100644 --- a/module/plugins/hooks/IRCInterface.py +++ b/module/plugins/hooks/IRCInterface.py @@ -20,7 +20,7 @@ from module.utils import formatSize  class IRCInterface(Thread, Hook):      __name__    = "IRCInterface"      __type__    = "hook" -    __version__ = "0.12" +    __version__ = "0.13"      __config__ = [("host", "str", "IRC-Server Address", "Enter your server here!"),                    ("port", "int", "IRC-Server Port", 6667), @@ -44,6 +44,11 @@ class IRCInterface(Thread, Hook):          self.setDaemon(True) +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def coreReady(self):          self.abort = False          self.more = [] diff --git a/module/plugins/hooks/ImageTyperz.py b/module/plugins/hooks/ImageTyperz.py index b00c5118f..f89d64c37 100644 --- a/module/plugins/hooks/ImageTyperz.py +++ b/module/plugins/hooks/ImageTyperz.py @@ -33,7 +33,7 @@ class ImageTyperzException(Exception):  class ImageTyperz(Hook):      __name__    = "ImageTyperz"      __type__    = "hook" -    __version__ = "0.04" +    __version__ = "0.05"      __config__ = [("username", "str", "Username", ""),                    ("passkey", "password", "Password", ""), @@ -50,6 +50,11 @@ class ImageTyperz(Hook):      GETCREDITS_URL = "http://captchatypers.com/Forms/RequestBalance.ashx" +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def setup(self):          self.info = {}  #@TODO: Remove in 0.4.10 diff --git a/module/plugins/hooks/LinkdecrypterCom.py b/module/plugins/hooks/LinkdecrypterCom.py index 0c5f6e754..b0ce335d0 100644 --- a/module/plugins/hooks/LinkdecrypterCom.py +++ b/module/plugins/hooks/LinkdecrypterCom.py @@ -10,13 +10,18 @@ from module.utils import remove_chars  class LinkdecrypterCom(Hook):      __name__    = "LinkdecrypterCom"      __type__    = "hook" -    __version__ = "0.20" +    __version__ = "0.21"      __description__ = """Linkdecrypter.com hook plugin"""      __license__     = "GPLv3"      __authors__     = [("zoidberg", "zoidberg@mujmail.cz")] +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def coreReady(self):          try:              self.loadPatterns() diff --git a/module/plugins/hooks/MergeFiles.py b/module/plugins/hooks/MergeFiles.py index e6f8bb26f..767209d21 100644 --- a/module/plugins/hooks/MergeFiles.py +++ b/module/plugins/hooks/MergeFiles.py @@ -12,7 +12,7 @@ from module.utils import save_join, fs_encode  class MergeFiles(Hook):      __name__    = "MergeFiles"      __type__    = "hook" -    __version__ = "0.12" +    __version__ = "0.13"      __config__ = [("activated", "bool", "Activated", True)] @@ -24,6 +24,11 @@ class MergeFiles(Hook):      BUFFER_SIZE = 4096 +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def setup(self):          # nothing to do          pass diff --git a/module/plugins/hooks/MultiHome.py b/module/plugins/hooks/MultiHome.py index 228e6027d..105a42abd 100644 --- a/module/plugins/hooks/MultiHome.py +++ b/module/plugins/hooks/MultiHome.py @@ -8,7 +8,7 @@ from module.plugins.Hook import Hook  class MultiHome(Hook):      __name__    = "MultiHome"      __type__    = "hook" -    __version__ = "0.11" +    __version__ = "0.12"      __config__ = [("interfaces", "str", "Interfaces", "None")] @@ -17,6 +17,11 @@ class MultiHome(Hook):      __authors__     = [("mkaay", "mkaay@mkaay.de")] +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def setup(self):          self.register = {}          self.interfaces = [] diff --git a/module/plugins/hooks/SkipRev.py b/module/plugins/hooks/SkipRev.py index f3edcc9dc..609bb4197 100644 --- a/module/plugins/hooks/SkipRev.py +++ b/module/plugins/hooks/SkipRev.py @@ -19,6 +19,11 @@ class SkipRev(Hook):      __authors__     = [("Walter Purcaro", "vuolter@gmail.com")] +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def _setup(self):          super(self.pyfile.plugin, self).setup()          if self.pyfile.hasStatus("skipped"): diff --git a/module/plugins/hooks/UnSkipOnFail.py b/module/plugins/hooks/UnSkipOnFail.py index f97d12431..d3baccfc2 100644 --- a/module/plugins/hooks/UnSkipOnFail.py +++ b/module/plugins/hooks/UnSkipOnFail.py @@ -10,7 +10,7 @@ from module.utils import fs_encode  class UnSkipOnFail(Hook):      __name__    = "UnSkipOnFail"      __type__    = "hook" -    __version__ = "0.01" +    __version__ = "0.02"      __config__ = [("activated", "bool", "Activated", True)] @@ -19,6 +19,11 @@ class UnSkipOnFail(Hook):      __authors__     = [("hagg", None)] +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def downloadFailed(self, pyfile):          pyfile_name = basename(pyfile.name)          pid = pyfile.package().id diff --git a/module/plugins/hooks/WindowsPhoneToastNotify.py b/module/plugins/hooks/WindowsPhoneToastNotify.py index 053ea47d0..ed305778c 100644 --- a/module/plugins/hooks/WindowsPhoneToastNotify.py +++ b/module/plugins/hooks/WindowsPhoneToastNotify.py @@ -9,7 +9,7 @@ from module.plugins.Hook import Hook  class WindowsPhoneToastNotify(Hook):      __name__    = "WindowsPhoneToastNotify"      __type__    = "hook" -    __version__ = "0.02" +    __version__ = "0.03"      __config__ = [("force", "bool", "Force even if client is connected", False),                    ("pushId", "str", "pushId", ""), @@ -21,6 +21,11 @@ class WindowsPhoneToastNotify(Hook):      __authors__     = [("Andy Voigt", "phone-support@hotmail.de")] +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def setup(self):          self.info = {}  #@TODO: Remove in 0.4.10 diff --git a/module/plugins/hooks/XFileSharingPro.py b/module/plugins/hooks/XFileSharingPro.py index fe955beb9..e9b1b454e 100644 --- a/module/plugins/hooks/XFileSharingPro.py +++ b/module/plugins/hooks/XFileSharingPro.py @@ -8,7 +8,7 @@ from module.plugins.Hook import Hook  class XFileSharingPro(Hook):      __name__    = "XFileSharingPro"      __type__    = "hook" -    __version__ = "0.25" +    __version__ = "0.26"      __config__ = [("activated", "bool", "Activated", True),                    ("use_hoster_list", "bool", "Load listed hosters only", True), @@ -44,6 +44,11 @@ class XFileSharingPro(Hook):          # self.loadPattern() +    #@TODO: Remove in 0.4.10 +    def initPeriodical(self): +        pass + +      def coreReady(self):          self.loadPattern() | 
