display command before encoding

This commit is contained in:
Overwatch 2014-08-27 21:53:54 +02:00
parent 60cb65998c
commit 93777058bd

View file

@ -269,8 +269,15 @@ if __name__ == '__main__':
# -------------------------------------------------- # --------------------------------------------------
# run the command if armed # run the command if armed
if main.cfg.dump_commands: if main.cfg.dump_commands or main.cfg.armed:
_print('will execute §B%s§/' %(' '.join(encode_cmd.dump())), prefix.start) 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: if main.cfg.armed:
pb = over.core.textui.ProgressBar(60, int(info.video_fps.value * info.duration), 'frames') pb = over.core.textui.ProgressBar(60, int(info.video_fps.value * info.duration), 'frames')
@ -299,11 +306,15 @@ if __name__ == '__main__':
# -------------------------------------------------- # --------------------------------------------------
# shuffle files around # 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) move_to_dir = pathlib.Path(main.cfg.move_source)
if not move_to_dir.is_dir(): 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() move_to_dir.mkdir()
else:
_print('will create directory §B%s§/' %(move_to_dir))
if files.move_infile_to: if files.move_infile_to:
if main.cfg.armed: if main.cfg.armed: