diff options
author | Armin <Armin@Armin-PC.diedering.lan> | 2015-04-10 01:07:51 +0200 |
---|---|---|
committer | Armin <Armin@Armin-PC.diedering.lan> | 2015-04-10 01:07:51 +0200 |
commit | 48a492bcffbf795577fed9f9b03b1e304c91409e (patch) | |
tree | 32f7bd233afb48596d9e9a7a138be56d173d7c38 /pyload/plugin/Addon.py | |
parent | fix: OboomCom and SmoozedCom with beaker >= v1.7.x (diff) | |
download | pyload-48a492bcffbf795577fed9f9b03b1e304c91409e.tar.xz |
more fixes. now running all plugins
Diffstat (limited to 'pyload/plugin/Addon.py')
-rw-r--r-- | pyload/plugin/Addon.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/plugin/Addon.py b/pyload/plugin/Addon.py index d33cdd400..1f4730851 100644 --- a/pyload/plugin/Addon.py +++ b/pyload/plugin/Addon.py @@ -78,7 +78,7 @@ class Addon(Base): def initPeriodical(self, delay=0, threaded=False): - self.cb = self.core.scheduler.addJob(max(0, delay), self._periodical, args=[threaded], threaded=threaded) + self.cb = self.core.scheduler.addJob(max(0, delay), self._periodical, [threaded], threaded=threaded) def _periodical(self, threaded): @@ -94,7 +94,7 @@ class Addon(Base): if self.core.debug: print_exc() - self.cb = self.core.scheduler.addJob(self.interval, self._periodical, threaded=threaded) + self.cb = self.core.scheduler.addJob(self.interval, self._periodical, [threaded], threaded=threaded) def __repr__(self): @@ -117,7 +117,7 @@ class Addon(Base): def isActivated(self): """ checks if addon is activated""" - return self.core.config.getPlugin(self.__class__.__name__, "activated") + return self.getConfig("activated") # Event methods - overwrite these if needed |