[mod] remove one indentation level
This commit is contained in:
parent
99050e4f22
commit
ed41772ed7
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user