From 3135bce96b32b7e4719b7ab563939a268b2cf01c Mon Sep 17 00:00:00 2001 From: Wilbur Jaywright Date: Sat, 25 May 2024 22:25:57 -0400 Subject: [PATCH] Fixed ClipRecordingCommand clip save location - Clips are now saved at specified location, previously ignored --- src/rumchat_actor/common_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rumchat_actor/common_commands.py b/src/rumchat_actor/common_commands.py index d696cff..dc05429 100644 --- a/src/rumchat_actor/common_commands.py +++ b/src/rumchat_actor/common_commands.py @@ -564,7 +564,7 @@ def form_recording_into_clip(self, duration, filename): print("Trimming") clip = recording.subclip(max((recording.duration - duration, 0)), recording.duration) print("Saving clip") - clip.write_videofile(filename + "." + CLIP_FILENAME_EXTENSION, logger = None) + clip.write_videofile(self.clip_save_path + os.sep + filename + "." + CLIP_FILENAME_EXTENSION, logger = None) print("Closing and deleting frozen copy") recording.close() os.system("rm " + self.recording_copy_fn)