use site_config for video settings

This commit is contained in:
j 2011-08-19 17:37:37 +02:00
commit ce912b59be
7 changed files with 39 additions and 71 deletions

View file

@ -697,4 +697,6 @@ def video(request, id, resolution, format, index=None):
response = HttpFileResponse(path, content_type=content_type)
response['Content-Disposition'] = 'attachment; filename="%s"' % filename
return response
if not settings.XSENDFILE and not settings.XACCELREDIRECT:
return redirect(stream.video.url)
return HttpFileResponse(path)