From 286b4399a0b31f8d24b3f77209dfd512afaf0496 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Thu, 12 May 2016 03:11:38 +0200 Subject: [PATCH] [fix] bad error message --- prosopopee/prosopopee.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index 451396d..7137923 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -74,14 +74,14 @@ class Video(object): if options.get("resize"): command = "{binary} {loglevel} -i {source} {resize} -vframes 1 -y {target}".format(**ffmpeg_switches) - error(os.system(command) == 0, "gm command failed") + error(os.system(command) == 0, "%s command failed" % ffmpeg_switches["binary"]) else: command = "{binary} {loglevel} -i {source} {resolution} {preselect} {bitrate} -pass 1 -an {format} -y {target}".format(**ffmpeg_switches) command2 = "{binary} {loglevel} -i {source} {resolution} {preselect} {bitrate} -pass 2 -acodec libvorbis -ab 100k {format} -y {target}".format(**ffmpeg_switches) print(command) - error(os.system(command) == 0, "gm command failed") + error(os.system(command) == 0, "%s command failed" % ffmpeg_switches["binary"]) print(command2) - error(os.system(command2) == 0, "gm command failed") + error(os.system(command2) == 0, "%s command failed" % ffmpeg_switches["binary"]) CACHE.cache_picture(source, target, options)