summaryrefslogtreecommitdiffstats
path: root/module/web
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-12-31 16:01:24 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-12-31 16:01:24 +0100
commitd35c003cc53d4723d1dfe0d81eeb9bea78cee594 (patch)
treeff9d47a0cee6116836955e37bf4471c1f1d82bee /module/web
parentsome account fixes (diff)
downloadpyload-d35c003cc53d4723d1dfe0d81eeb9bea78cee594.tar.xz
new crypter plugin API, now decrypting possible for now.
Diffstat (limited to 'module/web')
-rw-r--r--module/web/json_app.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/module/web/json_app.py b/module/web/json_app.py
index e02aa0707..5acafe153 100644
--- a/module/web/json_app.py
+++ b/module/web/json_app.py
@@ -179,11 +179,7 @@ def add_package():
links = map(lambda x: x.strip(), links)
links = filter(lambda x: x != "", links)
- pack = PYLOAD.addPackage(name, links, queue)
- if pw:
- pw = pw.decode("utf8", "ignore")
- data = {"password": pw}
- PYLOAD.setPackageData(pack, data)
+ PYLOAD.addPackage(name, links, queue, pw.decode("utf8", "ignore"))
@route("/json/move_package/<dest:int>/<id:int>")