summaryrefslogtreecommitdiffstats
path: root/module/web/pyload_app.py
diff options
context:
space:
mode:
authorGravatar Paul King <devnull@localhost> 2011-05-16 20:40:25 +0200
committerGravatar Paul King <devnull@localhost> 2011-05-16 20:40:25 +0200
commitd94868828e60167b2dbb20f39ea4282fd636844e (patch)
treeaa563f6ee730166853555a8fc9b3735c260d09a6 /module/web/pyload_app.py
parentSeveral Crypters and Hosters fixes, improvements, python2.5 issues... (diff)
downloadpyload-d94868828e60167b2dbb20f39ea4282fd636844e.tar.xz
fix #165, #277
Diffstat (limited to 'module/web/pyload_app.py')
-rw-r--r--module/web/pyload_app.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/module/web/pyload_app.py b/module/web/pyload_app.py
index 784127f72..c7af88275 100644
--- a/module/web/pyload_app.py
+++ b/module/web/pyload_app.py
@@ -316,6 +316,10 @@ def config():
data["time"] = data["options"]["time"][0]
except:
data["time"] = "0:00-0:00"
+ if data["options"].has_key("limitDL"):
+ data["limitdl"] = data["options"]["limitDL"][0]
+ else:
+ data["limitdl"] = "0"
return render_to_response('settings.html',
{'conf': {'plugin': plugin_menu, 'general': conf_menu, 'accs': accs}},
@@ -600,4 +604,4 @@ def info():
"webif": conf["webinterface"]["port"]["value"],
"language": conf["general"]["language"]["value"]}
- return render_to_response("info.html", data, [pre_processor]) \ No newline at end of file
+ return render_to_response("info.html", data, [pre_processor])