diff --git a/over-video.py b/over-video.py index 36de28f..45b3d32 100755 --- a/over-video.py +++ b/over-video.py @@ -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(): - move_to_dir.mkdir() + 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: