From 887d99f587709d3b4a15d6cd96e2ac87f0739f84 Mon Sep 17 00:00:00 2001 From: neingeist Date: Mon, 12 Nov 2018 15:22:09 +0100 Subject: [PATCH] limit source input to 5 files --- prolefeeder.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prolefeeder.py b/prolefeeder.py index 61a1cc7..9bf9566 100644 --- a/prolefeeder.py +++ b/prolefeeder.py @@ -85,11 +85,13 @@ def prepare_download(form): raise ValueError('Could not find start file') sources = sources[start_index:] + # Super lazy: Limit to 5 source files input + sources = sources[:5] + # Seek into the first file ss = (form.start_time.data - sources[0]['start_time']).total_seconds() # Let ffmpeg do the rest of the job - # XXX Necessary to limit the concat files? output_filename = '{}_{}.mp3'.format(form.start_time.data, form.length.data) c = ['ffmpeg', '-y']