forked from 0x2620/pandora
fix video
This commit is contained in:
parent
e60c606db1
commit
af14651714
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue