From 48a492bcffbf795577fed9f9b03b1e304c91409e Mon Sep 17 00:00:00 2001 From: Armin Date: Fri, 10 Apr 2015 01:07:51 +0200 Subject: more fixes. now running all plugins --- pyload/plugin/Addon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyload/plugin/Addon.py') 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 -- cgit v1.2.3