Skip to content

Commit

Permalink
Fixed ClipRecordingCommand clip save location
Browse files Browse the repository at this point in the history
- Clips are now saved at specified location, previously ignored
  • Loading branch information
thelabcat committed May 26, 2024
1 parent 803611a commit 3135bce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rumchat_actor/common_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3135bce

Please sign in to comment.