diff options
Diffstat (limited to 'module/web/ajax/views.py')
-rw-r--r-- | module/web/ajax/views.py | 8 |
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 |