From e046a9b5b3b4ce18aad6a730295a93ba1af31bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Tue, 2 Jun 2020 18:21:14 -0500 Subject: pep8 --- lvc/video.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lvc/video.py b/lvc/video.py index caa9ded..610fcf4 100644 --- a/lvc/video.py +++ b/lvc/video.py @@ -1,5 +1,5 @@ import logging -import os +# import os import re import tempfile import threading @@ -279,12 +279,14 @@ def get_thumbnail_synchronous(filename, width, height, output, skip=0): filter_ = 'scale=%i:%i' % (width, height) # bz19571: temporary disable: libav ffmpeg does not support this filter # if 'ffmpeg' in executable: - # # supports the thumbnail filter, we hope - # filter_ = 'thumbnail,' + filter_ - commandline = [executable, - '-ss', str(skip), - '-i', convert_path_for_subprocess(filename), - '-vf', filter_, '-vframes', '1', output] + # # supports the thumbnail filter, we hope + # filter_ = 'thumbnail,' + filter_ + commandline = [ + executable, + '-ss', str(skip), + '-i', convert_path_for_subprocess(filename), + '-vf', filter_, '-vframes', '1', output + ] try: execute.check_output(commandline) except execute.CalledProcessError as e: -- cgit v1.2.3