summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-28 00:17:15 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-28 00:17:15 +0100
commit0f91dcb371334286b43fafffc5e4f605bd184f9d (patch)
treef6c77c71136482d4cf38fe2447c6374e3ce0e4ad /pyLoadCore.py
parentapi fixes (diff)
downloadpyload-0f91dcb371334286b43fafffc5e4f605bd184f9d.tar.xz
working speedlimit + proxy support, closed #197
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index dfbb2f51d..3349a7393 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -603,7 +603,12 @@ class ServerMethods():
def set_conf_val(self, cat, opt, val, sec="core"):
""" set config value """
if sec == "core":
- self.core.config[str(cat)][str(opt)] = val
+ opt = str(opt)
+ self.core.config[str(cat)][opt] = val
+
+ if opt in ("limit_speed", "max_speed"): #not so nice to update the limit
+ self.core.requestFactory.updateBucket()
+
elif sec == "plugin":
self.core.config.setPlugin(cat, opt, val)