diff options
Diffstat (limited to 'module/web/cnl/views.py')
-rw-r--r-- | module/web/cnl/views.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/module/web/cnl/views.py b/module/web/cnl/views.py index 46db5e76e..c2e95151c 100644 --- a/module/web/cnl/views.py +++ b/module/web/cnl/views.py @@ -160,6 +160,16 @@ def crossdomain(request): return HttpResponse(rep) @local_check +def checksupport(request): + supported = False + + url = request.GET.get("url") + res = settings.PYLOAD.checkURLs([url]) + supported = (not res[0][1] is None) + + return JsonResponse(str(supported).lower(), request) + +@local_check def jdcheck(request): rep = "jdownloader=true;\n" rep += "var version='10629';\n" |