From b4aa60892fb60efd57f593006f35f94868a646da Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 5 Feb 2010 22:08:48 +0100 Subject: FlashGot + ClickNLoad Support + Webif. improvm.!! pyLoad FTW !! --- module/web/ajax/views.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'module/web/ajax/views.py') diff --git a/module/web/ajax/views.py b/module/web/ajax/views.py index 4d9762ab4..d00c283f1 100644 --- a/module/web/ajax/views.py +++ b/module/web/ajax/views.py @@ -192,5 +192,13 @@ def abort_link(request, id): try: settings.PYLOAD.stop_download("link", int(id)) return JsonResponse("sucess") + except: + return HttpResponseServerError() + +@permission('pyload.can_add_dl') +def push_to_queue(request, id): + try: + settings.PYLOAD.push_package_2_queue(int(id)) + return JsonResponse("sucess") except: return HttpResponseServerError() \ No newline at end of file -- cgit v1.2.3