do not return a file if we do not find a start file
This commit is contained in:
parent
734c562f9c
commit
07e6f8e6ed
1 changed files with 2 additions and 0 deletions
|
@ -78,6 +78,8 @@ def prepare_download(form):
|
|||
for i, source in enumerate(sources):
|
||||
if source['start_time'] <= form.start_time.data < source['start_time'] + source['length']:
|
||||
start_index = i
|
||||
if start_index is None:
|
||||
return None
|
||||
sources = sources[start_index:]
|
||||
|
||||
# Seek into the first file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue