fix video

This commit is contained in:
j 2011-08-18 20:01:03 +02:00
parent e60c606db1
commit af14651714

View file

@ -662,7 +662,10 @@ def video(request, id, resolution, format, index=None):
if index > len(videos): if index > len(videos):
raise Http404 raise Http404
f = videos[index] stream = videos[index].streams.filter(resolution=resolution, format=format)
if stream.count() == 0:
raise Http404
stream = stream[0]
path = stream.video.path path = stream.video.path
#server side cutting #server side cutting