From 5c9e8ad9da19353dd93028a4659f59a5a814356f Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Thu, 12 May 2016 02:30:49 +0200 Subject: [PATCH] [fix] otherwise line 49 will fail --- prosopopee/prosopopee.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index da628a1..15ead24 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -40,6 +40,8 @@ class Video(object): target_dir = "" def __init__(self, options): + error(SETTINGS["ffmpeg"] is not False, "I couldn't find a binary to convert video and I ask to do so, abort") + # assuming string if not isinstance(options, dict): options = {"name": options} @@ -52,8 +54,6 @@ class Video(object): return self.options["name"] def ffmpeg(self, source, target, options): - error(SETTINGS["ffmpeg"] is not False, "I couldn't find a binary to convert video and I ask to do so, abort") - if not CACHE.needs_to_be_generated(source, target, options): okgreen("Skipped", source + " is already generated") return