summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/DownloadScheduler.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks/DownloadScheduler.py')
-rw-r--r--module/plugins/hooks/DownloadScheduler.py6
1 files changed, 3 insertions, 3 deletions
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: