summaryrefslogtreecommitdiffstats
path: root/module/web
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-18 11:57:03 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-18 11:57:03 +0200
commit403045ce80cdc57e38e148639264db0aaef0d3f8 (patch)
tree01479e7e408993793ffa5f56d8cbd9f34f9037d1 /module/web
parentclosed #364, changes to online check api (diff)
downloadpyload-403045ce80cdc57e38e148639264db0aaef0d3f8.tar.xz
repaired cnl
Diffstat (limited to 'module/web')
-rw-r--r--module/web/cnl_app.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/module/web/cnl_app.py b/module/web/cnl_app.py
index f46893388..23bc67bf6 100644
--- a/module/web/cnl_app.py
+++ b/module/web/cnl_app.py
@@ -102,7 +102,10 @@ def addcrypted2():
result = filter(lambda x: x != "", result)
try:
- PYLOAD.add_package(package, result, False)
+ if package != "ClickAndLoad Package":
+ PYLOAD.addPackage(package, result, 0)
+ else:
+ PYLOAD.generateAndAddPackages(result, 0)
except:
return "failed can't add"
else:
@@ -119,7 +122,10 @@ def flashgot(request):
urls = filter(lambda x: x != "", request.forms['urls'].split("\n"))
folder = request.forms.get('dir', None)
- PYLOAD.add_package(package, urls, autostart)
+ if package != "FlashGot":
+ PYLOAD.addPackage(package, urls, autostart)
+ else:
+ PYLOAD.generateAndAddPackages(urls, autostart)
return ""