From 48c743058bd280d62d2aa9f2db56d894b502a8d9 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 14 Dec 2015 03:44:18 +0100 Subject: Update addons --- module/plugins/hooks/DownloadScheduler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/hooks/DownloadScheduler.py') diff --git a/module/plugins/hooks/DownloadScheduler.py b/module/plugins/hooks/DownloadScheduler.py index 9c644ab20..d4c0356fd 100644 --- a/module/plugins/hooks/DownloadScheduler.py +++ b/module/plugins/hooks/DownloadScheduler.py @@ -9,7 +9,7 @@ from module.plugins.internal.Addon import Addon class DownloadScheduler(Addon): __name__ = "DownloadScheduler" __type__ = "hook" - __version__ = "0.25" + __version__ = "0.26" __status__ = "testing" __config__ = [("activated", "bool", "Activated" , False ), @@ -28,7 +28,7 @@ class DownloadScheduler(Addon): def update_schedule(self, schedule=None): if schedule is None: - schedule = self.get_config('timetable') + schedule = self.config.get('timetable') schedule = re.findall("(\d{1,2}):(\d{2})[\s]*(-?\d+)", schedule.lower().replace("full", "-1").replace("none", "0")) @@ -56,7 +56,7 @@ class DownloadScheduler(Addon): def set_download_speed(self, speed): if speed == 0: - abort = self.get_config('abort') + abort = self.config.get('abort') self.log_info(_("Stopping download server. (Running downloads will %sbe aborted.)") % '' if abort else _('not ')) self.pyload.api.pauseServer() if abort: -- cgit v1.2.3