diff --git a/croppa/main.py b/croppa/main.py index 765c066..610cc47 100644 --- a/croppa/main.py +++ b/croppa/main.py @@ -1893,7 +1893,7 @@ class VideoEditor: print(" n: Previous video") print(" Enter: Render video (overwrites if '_edited_' in name)") print(" n: Render video") - print(" X: Cancel render") + print(" x: Cancel render") print(" Q/ESC: Quit") print() @@ -2040,24 +2040,24 @@ class VideoEditor: elif key == ord("n"): if len(self.video_files) > 1: self.next_video() - else: - directory = self.video_path.parent - base_name = self.video_path.stem - extension = self.video_path.suffix - - # Remove any existing _edited_ suffix to get clean base name - clean_base = base_name.replace("_edited", "") - - # Find next available number - counter = 1 - while True: - new_name = f"{clean_base}_edited_{counter:05d}{extension}" - output_path = directory / new_name - if not output_path.exists(): - break - counter += 1 - - success = self.render_video(str(output_path)) + elif key == ord("m"): + directory = self.video_path.parent + base_name = self.video_path.stem + extension = self.video_path.suffix + + # Remove any existing _edited_ suffix to get clean base name + clean_base = base_name.replace("_edited", "") + + # Find next available number + counter = 1 + while True: + new_name = f"{clean_base}_edited_{counter:05d}{extension}" + output_path = directory / new_name + if not output_path.exists(): + break + counter += 1 + + success = self.render_video(str(output_path)) elif key == 13: # Enter # Only overwrite if file already contains "_edited_" in name print(f"DEBUG: Checking if '{self.video_path.stem}' contains '_edited_'")