forked from 0x2620/pandora
return webm for parts for now
This commit is contained in:
parent
df2ec09e50
commit
2aad7ea984
1 changed files with 4 additions and 3 deletions
|
@ -653,11 +653,12 @@ def torrent(request, id, filename=None):
|
|||
return response
|
||||
|
||||
def video(request, id, profile, index=None, format=None):
|
||||
print id, profile, index, format
|
||||
item = get_object_or_404(models.Item, itemId=id)
|
||||
if index:
|
||||
stream = item.streams.filter(profile=profile)[index]
|
||||
path = stream.video.path
|
||||
index = int(index) - 1
|
||||
path = item.main_videos()[index].video.path
|
||||
#stream = item.streams.filter(profile=profile)[index]
|
||||
#path = stream.video.path
|
||||
else:
|
||||
stream = get_object_or_404(item.streams, profile="%s.%s" % (profile, format))
|
||||
path = stream.video.path
|
||||
|
|
Loading…
Reference in a new issue