From 403045ce80cdc57e38e148639264db0aaef0d3f8 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 18 Jul 2011 11:57:03 +0200 Subject: repaired cnl --- module/web/cnl_app.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'module/web') 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 "" -- cgit v1.2.3