diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-28 00:17:15 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-28 00:17:15 +0100 |
commit | 0f91dcb371334286b43fafffc5e4f605bd184f9d (patch) | |
tree | f6c77c71136482d4cf38fe2447c6374e3ce0e4ad /pyLoadCore.py | |
parent | api fixes (diff) | |
download | pyload-0f91dcb371334286b43fafffc5e4f605bd184f9d.tar.xz |
working speedlimit + proxy support, closed #197
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 7 |
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) |