diff options
author | mkaay <mkaay@mkaay.de> | 2010-09-22 16:20:15 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-09-22 16:20:15 +0200 |
commit | 4f72518f40ee83bd4e711e800affae0c1f6201bc (patch) | |
tree | e869266536dbae5bd2c2e5cc09cc469b75704620 /module/web/cnl/views.py | |
parent | curl gobal init (diff) | |
download | pyload-4f72518f40ee83bd4e711e800affae0c1f6201bc.tar.xz |
extended cnl
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" |