summaryrefslogtreecommitdiffstats
path: root/module/web/ajax/views.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-02-05 22:08:48 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-02-05 22:08:48 +0100
commitb4aa60892fb60efd57f593006f35f94868a646da (patch)
tree20e3dc3d8487269c5167e5cc73dabcd8261a4826 /module/web/ajax/views.py
parentfixed gui config error (diff)
downloadpyload-b4aa60892fb60efd57f593006f35f94868a646da.tar.xz
FlashGot + ClickNLoad Support + Webif. improvm.!! pyLoad FTW !!
Diffstat (limited to 'module/web/ajax/views.py')
-rw-r--r--module/web/ajax/views.py8
1 files changed, 8 insertions, 0 deletions
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
@@ -193,4 +193,12 @@ def abort_link(request, id):
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