From 04056bd87653e513377aaeb4d57f81e512a66c3b Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 4 May 2016 09:39:50 +0200 Subject: [PATCH] [mod] blank lines for lisibility --- prosopopee/prosopopee.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index b02b032..1dc7378 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -67,7 +67,9 @@ class Video(object): "format": "-f %s" % options["format"], "binary": "%s" % options["binary"] } + warning("Generation", source) + if options.get("resize"): command = "{binary} {loglevel} -i {source} {resize} -vframes 1 -y {target}".format(**ffmpeg_switches) os.system(command) @@ -76,6 +78,7 @@ class Video(object): command2 = "{binary} {loglevel} -i {source} {resolution} {preselect} {bitrate} -pass 2 -acodec libvorbis -ab 100k {format} -y {target}".format(**ffmpeg_switches) os.system(command) os.system(command2) + CACHE.cache_picture(source, target, options) def copy(self):