summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r--module/plugins/hooks/AndroidPhoneNotify.py3
-rw-r--r--module/plugins/hooks/AntiStandby.py10
-rw-r--r--module/plugins/hooks/AntiVirus.py3
-rw-r--r--module/plugins/hooks/BypassCaptcha.py5
-rw-r--r--module/plugins/hooks/Captcha9Kw.py3
-rw-r--r--module/plugins/hooks/CaptchaBrotherhood.py7
-rw-r--r--module/plugins/hooks/Checksum.py11
-rw-r--r--module/plugins/hooks/DeathByCaptcha.py7
-rw-r--r--module/plugins/hooks/DeleteFinished.py12
-rw-r--r--module/plugins/hooks/DownloadScheduler.py3
-rw-r--r--module/plugins/hooks/ExpertDecoders.py5
-rw-r--r--module/plugins/hooks/ExtractArchive.py9
-rw-r--r--module/plugins/hooks/HotFolder.py8
-rw-r--r--module/plugins/hooks/IRCInterface.py7
-rw-r--r--module/plugins/hooks/ImageTyperz.py7
-rw-r--r--module/plugins/hooks/JustPremium.py5
-rw-r--r--module/plugins/hooks/LinkdecrypterComHook.py4
-rw-r--r--module/plugins/hooks/MultiHome.py3
-rw-r--r--module/plugins/hooks/RestartFailed.py10
-rw-r--r--module/plugins/hooks/SkipRev.py3
-rw-r--r--module/plugins/hooks/TransmissionRPC.py3
-rw-r--r--module/plugins/hooks/UpdateManager.py17
-rw-r--r--module/plugins/hooks/WindowsPhoneNotify.py3
-rw-r--r--module/plugins/hooks/XMPPInterface.py7
24 files changed, 83 insertions, 72 deletions
diff --git a/module/plugins/hooks/AndroidPhoneNotify.py b/module/plugins/hooks/AndroidPhoneNotify.py
index aa9bc591b..60e9297e1 100644
--- a/module/plugins/hooks/AndroidPhoneNotify.py
+++ b/module/plugins/hooks/AndroidPhoneNotify.py
@@ -11,7 +11,8 @@ class AndroidPhoneNotify(Addon):
__version__ = "0.11"
__status__ = "testing"
- __config__ = [("apikey" , "str" , "API key" , "" ),
+ __config__ = [("activated" , "bool", "Activated" , False),
+ ("apikey" , "str" , "API key" , "" ),
("notifycaptcha" , "bool", "Notify captcha request" , True ),
("notifypackage" , "bool", "Notify package finished" , True ),
("notifyprocessed", "bool", "Notify packages processed" , True ),
diff --git a/module/plugins/hooks/AntiStandby.py b/module/plugins/hooks/AntiStandby.py
index fbb7f6760..aa7a028a5 100644
--- a/module/plugins/hooks/AntiStandby.py
+++ b/module/plugins/hooks/AntiStandby.py
@@ -27,7 +27,7 @@ class Kernel32(object):
class AntiStandby(Addon):
__name__ = "AntiStandby"
__type__ = "hook"
- __version__ = "0.11"
+ __version__ = "0.12"
__status__ = "testing"
__config__ = [("activated", "bool", "Activated" , True ),
@@ -41,8 +41,9 @@ class AntiStandby(Addon):
__authors__ = [("Walter Purcaro", "vuolter@gmail.com")]
- TMP_FILE = ".antistandby"
- MIN_INTERVAL = 5
+ TMP_FILE = ".antistandby"
+
+ PERIODICAL_INTERVAL = 5
def init(self):
@@ -56,8 +57,7 @@ class AntiStandby(Addon):
display = not self.get_config('display')
if hdd:
- self.interval = max(self.get_config('interval'), self.MIN_INTERVAL)
- self.init_periodical(threaded=True)
+ self.start_periodical(self.get_config('interval'), threaded=True)
if os.name is "nt":
self.win_standby(system, display)
diff --git a/module/plugins/hooks/AntiVirus.py b/module/plugins/hooks/AntiVirus.py
index 536675a41..c68e86c77 100644
--- a/module/plugins/hooks/AntiVirus.py
+++ b/module/plugins/hooks/AntiVirus.py
@@ -21,7 +21,8 @@ class AntiVirus(Addon):
__status__ = "testing"
#@TODO: add trash option (use Send2Trash lib)
- __config__ = [("action" , "Antivirus default;Delete;Quarantine", "Manage infected files" , "Antivirus default"),
+ __config__ = [("activated" , "bool" , "Activated" , False ),
+ ("action" , "Antivirus default;Delete;Quarantine", "Manage infected files" , "Antivirus default"),
("quardir" , "folder" , "Quarantine folder" , "" ),
("deltotrash", "bool" , "Move to trash instead delete", True ),
("scanfailed", "bool" , "Scan failed downloads" , False ),
diff --git a/module/plugins/hooks/BypassCaptcha.py b/module/plugins/hooks/BypassCaptcha.py
index 4b155a67e..a5e424532 100644
--- a/module/plugins/hooks/BypassCaptcha.py
+++ b/module/plugins/hooks/BypassCaptcha.py
@@ -31,8 +31,9 @@ class BypassCaptcha(Hook):
__version__ = "0.08"
__status__ = "testing"
- __config__ = [("passkey" , "password", "Access key" , "" ),
- ("check_client", "bool" , "Don't use if client is connected", True)]
+ __config__ = [("activated" , "bool" , "Activated" , False),
+ ("passkey" , "password", "Access key" , "" ),
+ ("check_client", "bool" , "Don't use if client is connected", True )]
__description__ = """Send captchas to BypassCaptcha.com"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/Captcha9Kw.py b/module/plugins/hooks/Captcha9Kw.py
index 656497dd6..61b496ec6 100644
--- a/module/plugins/hooks/Captcha9Kw.py
+++ b/module/plugins/hooks/Captcha9Kw.py
@@ -17,7 +17,8 @@ class Captcha9Kw(Hook):
__version__ = "0.30"
__status__ = "testing"
- __config__ = [("check_client" , "bool" , "Don't use if client is connected" , True ),
+ __config__ = [("activated" , "bool" , "Activated" , False ),
+ ("check_client" , "bool" , "Don't use if client is connected" , True ),
("confirm" , "bool" , "Confirm Captcha (cost +6 credits)" , False ),
("captchaperhour", "int" , "Captcha per hour" , "9999" ),
("captchapermin" , "int" , "Captcha per minute" , "9999" ),
diff --git a/module/plugins/hooks/CaptchaBrotherhood.py b/module/plugins/hooks/CaptchaBrotherhood.py
index 838c220f0..a8abb1600 100644
--- a/module/plugins/hooks/CaptchaBrotherhood.py
+++ b/module/plugins/hooks/CaptchaBrotherhood.py
@@ -41,9 +41,10 @@ class CaptchaBrotherhood(Hook):
__version__ = "0.10"
__status__ = "testing"
- __config__ = [("username" , "str" , "Username" , "" ),
- ("password" , "password", "Password" , "" ),
- ("check_client", "bool" , "Don't use if client is connected", True)]
+ __config__ = [("activated" , "bool" , "Activated" , False),
+ ("username" , "str" , "Username" , "" ),
+ ("password" , "password", "Password" , "" ),
+ ("check_client", "bool" , "Don't use if client is connected", True )]
__description__ = """Send captchas to CaptchaBrotherhood.com"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/Checksum.py b/module/plugins/hooks/Checksum.py
index fe866563d..4d0493212 100644
--- a/module/plugins/hooks/Checksum.py
+++ b/module/plugins/hooks/Checksum.py
@@ -41,11 +41,12 @@ class Checksum(Addon):
__version__ = "0.22"
__status__ = "testing"
- __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"),
- ("max_tries" , "int" , "Number of retries" , 2 ),
- ("retry_action" , "fail;nothing" , "What to do if all retries fail?" , "fail" ),
- ("wait_time" , "int" , "Time to wait before each retry (seconds)" , 1 )]
+ __config__ = [("activated" , "bool" , "Activated" , False ),
+ ("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"),
+ ("max_tries" , "int" , "Number of retries" , 2 ),
+ ("retry_action" , "fail;nothing" , "What to do if all retries fail?" , "fail" ),
+ ("wait_time" , "int" , "Time to wait before each retry (seconds)" , 1 )]
__description__ = """Verify downloaded file size and checksum"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/DeathByCaptcha.py b/module/plugins/hooks/DeathByCaptcha.py
index c39cf11da..d3d00affa 100644
--- a/module/plugins/hooks/DeathByCaptcha.py
+++ b/module/plugins/hooks/DeathByCaptcha.py
@@ -54,9 +54,10 @@ class DeathByCaptcha(Hook):
__version__ = "0.08"
__status__ = "testing"
- __config__ = [("username" , "str" , "Username" , "" ),
- ("password" , "password", "Password" , "" ),
- ("check_client", "bool" , "Don't use if client is connected", True)]
+ __config__ = [("activated" , "bool" , "Activated" , False),
+ ("username" , "str" , "Username" , "" ),
+ ("password" , "password", "Password" , "" ),
+ ("check_client", "bool" , "Don't use if client is connected", True )]
__description__ = """Send captchas to DeathByCaptcha.com"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/DeleteFinished.py b/module/plugins/hooks/DeleteFinished.py
index 4c29d5fdf..e72439c0a 100644
--- a/module/plugins/hooks/DeleteFinished.py
+++ b/module/plugins/hooks/DeleteFinished.py
@@ -7,10 +7,11 @@ from module.plugins.internal.Addon import Addon
class DeleteFinished(Addon):
__name__ = "DeleteFinished"
__type__ = "hook"
- __version__ = "1.15"
+ __version__ = "1.16"
__status__ = "testing"
- __config__ = [("interval" , "int" , "Check interval in hours" , 72 ),
+ __config__ = [("activated" , "bool", "Activated" , False),
+ ("interval" , "int" , "Check interval in hours" , 72 ),
("deloffline", "bool", "Delete package with offline links", False)]
__description__ = """Automatically delete all finished packages from queue"""
@@ -18,12 +19,11 @@ class DeleteFinished(Addon):
__authors__ = [("Walter Purcaro", "vuolter@gmail.com")]
- MIN_CHECK_INTERVAL = 1 * 60 * 60 #: 1 hour
+ PERIODICAL_INTERVAL = 1 * 60 * 60 #: 1 hour
def activate(self):
- self.interval = self.MIN_CHECK_INTERVAL
- self.init_periodical()
+ self.start_periodical()
def periodical(self):
@@ -43,7 +43,7 @@ class DeleteFinished(Addon):
def activate(self):
self.info['sleep'] = True
- self.interval = max(self.MIN_CHECK_INTERVAL, self.get_config('interval') * 60 * 60)
+ self.interval = max(self.PERIODICAL_INTERVAL, self.get_config('interval') * 60 * 60)
self.add_event('package_finished', self.wakeup)
diff --git a/module/plugins/hooks/DownloadScheduler.py b/module/plugins/hooks/DownloadScheduler.py
index b2e804dce..8454438a1 100644
--- a/module/plugins/hooks/DownloadScheduler.py
+++ b/module/plugins/hooks/DownloadScheduler.py
@@ -12,7 +12,8 @@ class DownloadScheduler(Addon):
__version__ = "0.24"
__status__ = "testing"
- __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"),
+ __config__ = [("activated", "bool", "Activated" , False ),
+ ("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"),
("abort" , "bool", "Abort active downloads when start period with speed 0", False )]
__description__ = """Download Scheduler"""
diff --git a/module/plugins/hooks/ExpertDecoders.py b/module/plugins/hooks/ExpertDecoders.py
index 630382f2d..cdb76a49d 100644
--- a/module/plugins/hooks/ExpertDecoders.py
+++ b/module/plugins/hooks/ExpertDecoders.py
@@ -18,8 +18,9 @@ class ExpertDecoders(Hook):
__version__ = "0.06"
__status__ = "testing"
- __config__ = [("passkey" , "password", "Access key" , "" ),
- ("check_client", "bool" , "Don't use if client is connected", True)]
+ __config__ = [("activated" , "bool" , "Activated" , False),
+ ("passkey" , "password", "Access key" , "" ),
+ ("check_client", "bool" , "Don't use if client is connected", True )]
__description__ = """Send captchas to expertdecoders.com"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py
index 59df2746c..47ed708be 100644
--- a/module/plugins/hooks/ExtractArchive.py
+++ b/module/plugins/hooks/ExtractArchive.py
@@ -143,12 +143,11 @@ class ExtractArchive(Addon):
self.queue = ArchiveQueue(self, "Queue")
self.failed = ArchiveQueue(self, "Failed")
- self.interval = 60
- self.extracting = False
+ self.extracting = False
self.last_package = False
- self.extractors = []
- self.passwords = []
- self.repair = False
+ self.extractors = []
+ self.passwords = []
+ self.repair = False
def activate(self):
diff --git a/module/plugins/hooks/HotFolder.py b/module/plugins/hooks/HotFolder.py
index 6da2d5071..c7631a1fc 100644
--- a/module/plugins/hooks/HotFolder.py
+++ b/module/plugins/hooks/HotFolder.py
@@ -13,10 +13,11 @@ from module.utils import fs_encode, save_join as fs_join
class HotFolder(Addon):
__name__ = "HotFolder"
__type__ = "hook"
- __version__ = "0.18"
+ __version__ = "0.19"
__status__ = "testing"
- __config__ = [("folder" , "str" , "Folder to watch" , "watchdir" ),
+ __config__ = [("activated", "bool", "Activated" , False ),
+ ("folder" , "str" , "Folder to watch" , "watchdir" ),
("watchfile", "bool", "Watch link file" , False ),
("delete" , "bool", "Delete added containers", False ),
("file" , "str" , "Link file" , "links.txt")]
@@ -27,8 +28,7 @@ class HotFolder(Addon):
def activate(self):
- self.interval = 30
- self.init_periodical(threaded=True)
+ self.start_periodical(30, threaded=True)
def periodical(self):
diff --git a/module/plugins/hooks/IRCInterface.py b/module/plugins/hooks/IRCInterface.py
index a3d538272..16640df0b 100644
--- a/module/plugins/hooks/IRCInterface.py
+++ b/module/plugins/hooks/IRCInterface.py
@@ -21,7 +21,8 @@ class IRCInterface(Thread, Addon):
__version__ = "0.17"
__status__ = "testing"
- __config__ = [("host" , "str" , "IRC-Server Address" , "Enter your server here!"),
+ __config__ = [("activated", "bool", "Activated" , False ),
+ ("host" , "str" , "IRC-Server Address" , "Enter your server here!"),
("port" , "int" , "IRC-Server Port" , 6667 ),
("ident" , "str" , "Clients ident" , "pyload-irc" ),
("realname" , "str" , "Realname" , "pyload-irc" ),
@@ -37,9 +38,9 @@ class IRCInterface(Thread, Addon):
__authors__ = [("Jeix", "Jeix@hasnomail.com")]
- def __init__(self, core, manager):
+ def __init__(self, *args, **kwargs):
Thread.__init__(self)
- Addon.__init__(self, core, manager)
+ Addon.__init__(self, *args, **kwargs)
self.setDaemon(True)
diff --git a/module/plugins/hooks/ImageTyperz.py b/module/plugins/hooks/ImageTyperz.py
index 85c22f1da..a22ddce7b 100644
--- a/module/plugins/hooks/ImageTyperz.py
+++ b/module/plugins/hooks/ImageTyperz.py
@@ -35,9 +35,10 @@ class ImageTyperz(Hook):
__version__ = "0.08"
__status__ = "testing"
- __config__ = [("username" , "str" , "Username" , "" ),
- ("password" , "password", "Password" , "" ),
- ("check_client", "bool" , "Don't use if client is connected", True)]
+ __config__ = [("activated" , "bool" , "Activated" , False),
+ ("username" , "str" , "Username" , "" ),
+ ("password" , "password", "Password" , "" ),
+ ("check_client", "bool" , "Don't use if client is connected", True )]
__description__ = """Send captchas to ImageTyperz.com"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/JustPremium.py b/module/plugins/hooks/JustPremium.py
index 69a6a851b..f4c48cfa9 100644
--- a/module/plugins/hooks/JustPremium.py
+++ b/module/plugins/hooks/JustPremium.py
@@ -11,8 +11,9 @@ class JustPremium(Addon):
__version__ = "0.24"
__status__ = "testing"
- __config__ = [("excluded", "str", "Exclude hosters (comma separated)", ""),
- ("included", "str", "Include hosters (comma separated)", "")]
+ __config__ = [("activated", "bool", "Activated" , False),
+ ("excluded" , "str" , "Exclude hosters (comma separated)", "" ),
+ ("included" , "str" , "Include hosters (comma separated)", "" )]
__description__ = """Remove not-premium links from added urls"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/LinkdecrypterComHook.py b/module/plugins/hooks/LinkdecrypterComHook.py
index a318a78fa..2fe780a0c 100644
--- a/module/plugins/hooks/LinkdecrypterComHook.py
+++ b/module/plugins/hooks/LinkdecrypterComHook.py
@@ -8,10 +8,10 @@ from module.plugins.internal.Addon import Addon
class LinkdecrypterComHook(Addon):
__name__ = "LinkdecrypterComHook"
__type__ = "hook"
- __version__ = "1.07"
+ __version__ = "1.08"
__status__ = "testing"
- __config__ = [("activated" , "bool" , "Activated" , True ),
+ __config__ = [("activated" , "bool" , "Activated" , False),
("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
("pluginlist" , "str" , "Plugin list (comma separated)", "" ),
("reload" , "bool" , "Reload plugin list" , True ),
diff --git a/module/plugins/hooks/MultiHome.py b/module/plugins/hooks/MultiHome.py
index b1e3c8ada..90e8a60d2 100644
--- a/module/plugins/hooks/MultiHome.py
+++ b/module/plugins/hooks/MultiHome.py
@@ -47,7 +47,8 @@ class MultiHome(Addon):
__version__ = "0.14"
__status__ = "testing"
- __config__ = [("interfaces", "str", "Interfaces", "None")]
+ __config__ = [("activated" , "bool", "Activated" , False ),
+ ("interfaces", "str" , "Interfaces", "None")]
__description__ = """IP address changer"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/RestartFailed.py b/module/plugins/hooks/RestartFailed.py
index e1498b0ae..74d570425 100644
--- a/module/plugins/hooks/RestartFailed.py
+++ b/module/plugins/hooks/RestartFailed.py
@@ -6,17 +6,18 @@ from module.plugins.internal.Addon import Addon
class RestartFailed(Addon):
__name__ = "RestartFailed"
__type__ = "hook"
- __version__ = "1.61"
+ __version__ = "1.62"
__status__ = "testing"
- __config__ = [("interval", "int", "Check interval in minutes", 90)]
+ __config__ = [("activated", "bool", "Activated" , False),
+ ("interval" , "int" , "Check interval in minutes", 90 )]
__description__ = """Restart all the failed downloads in queue"""
__license__ = "GPLv3"
__authors__ = [("Walter Purcaro", "vuolter@gmail.com")]
- MIN_CHECK_INTERVAL = 15 * 60 #: 15 minutes
+ PERIODICAL_INTERVAL = 15 * 60 #: 15 minutes
def periodical(self):
@@ -25,5 +26,4 @@ class RestartFailed(Addon):
def activate(self):
- self.interval = max(self.MIN_CHECK_INTERVAL, self.get_config('interval') * 60)
- self.init_periodical()
+ self.start_periodical(self.get_config('interval') * 60)
diff --git a/module/plugins/hooks/SkipRev.py b/module/plugins/hooks/SkipRev.py
index 1e0a495b4..891d2db6d 100644
--- a/module/plugins/hooks/SkipRev.py
+++ b/module/plugins/hooks/SkipRev.py
@@ -15,7 +15,8 @@ class SkipRev(Addon):
__version__ = "0.34"
__status__ = "testing"
- __config__ = [("mode" , "Auto;Manual", "Choose recovery archives to skip" , "Auto"),
+ __config__ = [("activated", "bool" , "Activated" , False ),
+ ("mode" , "Auto;Manual", "Choose recovery archives to skip" , "Auto"),
("revtokeep", "int" , "Number of recovery archives to keep for package", 0 )]
__description__ = """Skip recovery archives (.rev)"""
diff --git a/module/plugins/hooks/TransmissionRPC.py b/module/plugins/hooks/TransmissionRPC.py
index 5fdbf6402..7d3e24661 100644
--- a/module/plugins/hooks/TransmissionRPC.py
+++ b/module/plugins/hooks/TransmissionRPC.py
@@ -18,7 +18,8 @@ class TransmissionRPC(Addon):
__status__ = "testing"
__pattern__ = r"https?://.+\.torrent|magnet:\?.+"
- __config__ = [("rpc_url", "str", "Transmission RPC URL", "http://127.0.0.1:9091/transmission/rpc")]
+ __config__ = [("activated", "bool", "Activated" , False ),
+ ("rpc_url" , "str" , "Transmission RPC URL", "http://127.0.0.1:9091/transmission/rpc")]
__description__ = """Send torrent and magnet URLs to Transmission Bittorent daemon via RPC"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py
index 330269397..872d4eb40 100644
--- a/module/plugins/hooks/UpdateManager.py
+++ b/module/plugins/hooks/UpdateManager.py
@@ -16,7 +16,7 @@ from module.utils import fs_encode, save_join as fs_join
class UpdateManager(Addon):
__name__ = "UpdateManager"
__type__ = "hook"
- __version__ = "0.56"
+ __version__ = "0.57"
__status__ = "testing"
__config__ = [("activated" , "bool", "Activated" , True ),
@@ -32,10 +32,8 @@ class UpdateManager(Addon):
__authors__ = [("Walter Purcaro", "vuolter@gmail.com")]
- interval = 0
-
SERVER_URL = "http://updatemanager.pyload.org"
- MIN_CHECK_INTERVAL = 3 * 60 * 60 #: 3 hours
+ PERIODICAL_INTERVAL = 3 * 60 * 60 #: 3 hours
def activate(self):
@@ -45,17 +43,14 @@ class UpdateManager(Addon):
if self.do_restart is False:
self.pyload.api.unpauseServer()
- self.init_periodical()
+ self.start_periodical(10)
def init(self):
- self.info = {'pyload': False, 'version': None, 'plugins': False, 'last_check': time.time()}
- self.mtimes = {} #: Store modification time for each plugin
-
+ self.info = {'pyload': False, 'version': None, 'plugins': False, 'last_check': time.time()}
+ self.mtimes = {} #: Store modification time for each plugin
self.event_map = {'allDownloadsProcessed': "all_downloads_processed"}
- self.interval = 10
-
if self.get_config('checkonstart'):
self.pyload.api.pauseServer()
self.checkonstart = True
@@ -80,7 +75,7 @@ class UpdateManager(Addon):
return
if self.get_config('checkperiod') and \
- time.time() - max(self.MIN_CHECK_INTERVAL, self.get_config('checkinterval') * 60 * 60) > self.info['last_check']:
+ time.time() - max(self.PERIODICAL_INTERVAL, self.get_config('checkinterval') * 60 * 60) > self.info['last_check']:
self.update()
diff --git a/module/plugins/hooks/WindowsPhoneNotify.py b/module/plugins/hooks/WindowsPhoneNotify.py
index 52fff88b8..4343d16f2 100644
--- a/module/plugins/hooks/WindowsPhoneNotify.py
+++ b/module/plugins/hooks/WindowsPhoneNotify.py
@@ -12,7 +12,8 @@ class WindowsPhoneNotify(Addon):
__version__ = "0.13"
__status__ = "testing"
- __config__ = [("push-id" , "str" , "Push ID" , "" ),
+ __config__ = [("activated" , "bool", "Activated" , False),
+ ("push-id" , "str" , "Push ID" , "" ),
("push-url" , "str" , "Push url" , "" ),
("notifycaptcha" , "bool", "Notify captcha request" , True ),
("notifypackage" , "bool", "Notify package finished" , True ),
diff --git a/module/plugins/hooks/XMPPInterface.py b/module/plugins/hooks/XMPPInterface.py
index f6e7020cd..811e2f5f4 100644
--- a/module/plugins/hooks/XMPPInterface.py
+++ b/module/plugins/hooks/XMPPInterface.py
@@ -15,7 +15,8 @@ class XMPPInterface(IRCInterface, JabberClient):
__version__ = "0.13"
__status__ = "testing"
- __config__ = [("jid" , "str" , "Jabber ID" , "user@exmaple-jabber-server.org" ),
+ __config__ = [("activated", "bool", "Activated" , False ),
+ ("jid" , "str" , "Jabber ID" , "user@exmaple-jabber-server.org" ),
("pw" , "str" , "Password" , "" ),
("tls" , "bool", "Use TLS" , False ),
("owners" , "str" , "List of JIDs accepting commands from", "me@icq-gateway.org;some@msn-gateway.org"),
@@ -31,8 +32,8 @@ class XMPPInterface(IRCInterface, JabberClient):
implements(IMessageHandlersProvider)
- def __init__(self, core, manager):
- IRCInterface.__init__(self, core, manager)
+ def __init__(self, *args, **kwargs):
+ IRCInterface.__init__(self, *args, **kwargs)
self.jid = JID(self.get_config('jid'))
password = self.get_config('pw')