|
|
@ -28,10 +28,10 @@ def download():
|
|
|
|
form.start_time.data = datetime.now() - timedelta(hours=1)
|
|
|
|
form.start_time.data = datetime.now() - timedelta(hours=1)
|
|
|
|
form.length.data = 60
|
|
|
|
form.length.data = 60
|
|
|
|
elif form.validate_on_submit():
|
|
|
|
elif form.validate_on_submit():
|
|
|
|
flash('The download should start immediately.')
|
|
|
|
flash('The download should start immediately.', 'success')
|
|
|
|
return render_template('download.html', form=form, filename='test.mp3')
|
|
|
|
return render_template('download.html', form=form, filename='test.mp3')
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
flash('Error')
|
|
|
|
flash('Error', 'warning')
|
|
|
|
return render_template('download.html', form=form)
|
|
|
|
return render_template('download.html', form=form)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|