diff options
Diffstat (limited to 'module/plugins/hooks/DownloadScheduler.py')
-rw-r--r-- | module/plugins/hooks/DownloadScheduler.py | 8 |
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) |