use site_config for video settings
This commit is contained in:
parent
ad38fa019e
commit
ce912b59be
7 changed files with 39 additions and 71 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue