forked from 0x2620/pandora
order videos
This commit is contained in:
parent
52df791560
commit
c15b25b888
1 changed files with 2 additions and 2 deletions
|
@ -667,8 +667,8 @@ def video(request, id, resolution, format, index=None):
|
||||||
index = int(index) - 1
|
index = int(index) - 1
|
||||||
else:
|
else:
|
||||||
index = 0
|
index = 0
|
||||||
streams= Stream.objects.filter(file__item__itemId=item.itemId,
|
streams = Stream.objects.filter(file__item__itemId=item.itemId,
|
||||||
resolution=resolution, format=format)
|
resolution=resolution, format=format).order_by('file__part')
|
||||||
if index > streams.count():
|
if index > streams.count():
|
||||||
raise Http404
|
raise Http404
|
||||||
stream = streams[index]
|
stream = streams[index]
|
||||||
|
|
Loading…
Reference in a new issue