[fix] otherwise line 49 will fail
This commit is contained in:
parent
7c9e7dc304
commit
5c9e8ad9da
@ -40,6 +40,8 @@ class Video(object):
|
|||||||
target_dir = ""
|
target_dir = ""
|
||||||
|
|
||||||
def __init__(self, options):
|
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
|
# assuming string
|
||||||
if not isinstance(options, dict):
|
if not isinstance(options, dict):
|
||||||
options = {"name": options}
|
options = {"name": options}
|
||||||
@ -52,8 +54,6 @@ class Video(object):
|
|||||||
return self.options["name"]
|
return self.options["name"]
|
||||||
|
|
||||||
def ffmpeg(self, source, target, options):
|
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):
|
if not CACHE.needs_to_be_generated(source, target, options):
|
||||||
okgreen("Skipped", source + " is already generated")
|
okgreen("Skipped", source + " is already generated")
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user