diff --git a/config.py.example b/config.py.example index 9391f8c..31e84bb 100644 --- a/config.py.example +++ b/config.py.example @@ -1,4 +1,6 @@ -import os, random, string +import os +import random +import string class Config: diff --git a/prolefeeder.py b/prolefeeder.py index acc653c..e4f2e08 100644 --- a/prolefeeder.py +++ b/prolefeeder.py @@ -21,6 +21,7 @@ Bootstrap(app) attachment_filenames = {} + class DownloadForm(FlaskForm): start_time = DateTimeField('Start time', validators=[InputRequired()], @@ -111,8 +112,8 @@ def prepare_download(form): c = ['ffmpeg', '-y'] c += ['-ss', str(ss)] - c += ['-i', 'concat:' + '|'.join([os.path.join(app.config['DATA_DIR'], - source['fn']) for source in sources])] + c += ['-i', 'concat:' + '|'.join( + [os.path.join(app.config['DATA_DIR'], s['fn']) for s in sources])] c += ['-codec', 'copy'] c += ['-t', str(form.length.data * 60)] c += [os.path.join(app.config['TMP_DIR'], output_filename)] diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..6e8912b --- /dev/null +++ b/setup.cfg @@ -0,0 +1,3 @@ +[pep8] +#ignore = +max-line-length = 160