[mod] remove one indentation level

This commit is contained in:
Laurent Peuch 2016-05-04 09:39:35 +02:00
parent 99050e4f22
commit ed41772ed7

View File

@ -52,7 +52,10 @@ class Video(object):
return self.options["name"] return self.options["name"]
def ffmpeg(self, source, target, options): def ffmpeg(self, source, target, options):
if CACHE.needs_to_be_generated(source, target, options): if not CACHE.needs_to_be_generated(source, target, options):
okgreen("Skipped", source + " is already generated")
return
ffmpeg_switches = { ffmpeg_switches = {
"source": source, "source": source,
"target": target, "target": target,
@ -74,8 +77,6 @@ class Video(object):
os.system(command) os.system(command)
os.system(command2) os.system(command2)
CACHE.cache_picture(source, target, options) CACHE.cache_picture(source, target, options)
else:
okgreen("Skipped", source + " is already generated")
def copy(self): def copy(self):
source, target = os.path.join(self.base_dir, self.name), os.path.join(self.target_dir, self.name) source, target = os.path.join(self.base_dir, self.name), os.path.join(self.target_dir, self.name)