summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/DownloadScheduler.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-17 03:03:26 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-17 03:03:26 +0200
commitd2e2b127651a5a44b56337eb6d9ca246c97a208a (patch)
tree46f34e2102fd44ed2f719727eb07a445e7baa77d /module/plugins/hooks/DownloadScheduler.py
parentNo camelCase style anymore (diff)
downloadpyload-d2e2b127651a5a44b56337eb6d9ca246c97a208a.tar.xz
Spare fixes and code cosmetics
Diffstat (limited to 'module/plugins/hooks/DownloadScheduler.py')
-rw-r--r--module/plugins/hooks/DownloadScheduler.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hooks/DownloadScheduler.py b/module/plugins/hooks/DownloadScheduler.py
index e4b09f049..ed43683fa 100644
--- a/module/plugins/hooks/DownloadScheduler.py
+++ b/module/plugins/hooks/DownloadScheduler.py
@@ -72,9 +72,9 @@ class DownloadScheduler(Hook):
if speed > 0:
self.log_info(_("Setting download speed to %d kB/s") % speed)
- self.core.api.setConfigValue("download", "limit_speed", 1)
- self.core.api.setConfigValue("download", "max_speed", speed)
+ self.core.config.set("download", "limit_speed", 1)
+ self.core.config.set("download", "max_speed", speed)
else:
self.log_info(_("Setting download speed to FULL"))
- self.core.api.setConfigValue("download", "limit_speed", 0)
- self.core.api.setConfigValue("download", "max_speed", -1)
+ self.core.config.set("download", "limit_speed", 0)
+ self.core.config.set("download", "max_speed", -1)