get file order from streams
This commit is contained in:
parent
6c1aa50ed2
commit
4cd1473a94
1 changed files with 3 additions and 2 deletions
|
@ -936,9 +936,10 @@ def download_source(request, id, part=None):
|
|||
part = int(part) - 1
|
||||
else:
|
||||
part = 0
|
||||
if not item.files.all().count() > part:
|
||||
streams = item.streams()
|
||||
if parts > len(streams):
|
||||
raise Http404
|
||||
f = item.files.all()[part]
|
||||
f = streams[part].file
|
||||
if not f.data:
|
||||
raise Http404
|
||||
|
||||
|
|
Loading…
Reference in a new issue