display command before encoding
This commit is contained in:
parent
60cb65998c
commit
93777058bd
1 changed files with 15 additions and 4 deletions
|
@ -269,8 +269,15 @@ if __name__ == '__main__':
|
|||
# --------------------------------------------------
|
||||
# run the command if armed
|
||||
|
||||
if main.cfg.dump_commands:
|
||||
_print('will execute §B%s§/' %(' '.join(encode_cmd.dump())), prefix.start)
|
||||
if main.cfg.dump_commands or main.cfg.armed:
|
||||
cmd = ' '.join(encode_cmd.dump())
|
||||
|
||||
if main.cfg.armed:
|
||||
_print('executing §B%s§/' %(cmd), prefix.start)
|
||||
else:
|
||||
_print('will execute §B%s§/' %(cmd))
|
||||
else:
|
||||
_print('will encode into §B%s§/' %(files.tmpfile))
|
||||
|
||||
if main.cfg.armed:
|
||||
pb = over.core.textui.ProgressBar(60, int(info.video_fps.value * info.duration), 'frames')
|
||||
|
@ -299,11 +306,15 @@ if __name__ == '__main__':
|
|||
# --------------------------------------------------
|
||||
# shuffle files around
|
||||
|
||||
if main.cfg.move_source and main.cfg.armed:
|
||||
if main.cfg.move_source:
|
||||
move_to_dir = pathlib.Path(main.cfg.move_source)
|
||||
|
||||
if not move_to_dir.is_dir():
|
||||
if main.cfg.armed:
|
||||
_print('creating directory §B%s§/' %(move_to_dir), prefix.start)
|
||||
move_to_dir.mkdir()
|
||||
else:
|
||||
_print('will create directory §B%s§/' %(move_to_dir))
|
||||
|
||||
if files.move_infile_to:
|
||||
if main.cfg.armed:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue