[fix] otherwise line 49 will fail

This commit is contained in:
Laurent Peuch 2016-05-12 02:30:49 +02:00
parent 7c9e7dc304
commit 5c9e8ad9da

View File

@ -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