fix(clip): use existing config instance for clip output path

This commit is contained in:
2026-04-28 22:40:46 +01:00
parent 3ef9955015
commit 31e236dc46

View File

@@ -14,7 +14,7 @@ def clip(seconds_from_end: float) -> None:
if seconds_from_end <= 0 or seconds_from_end > 600: if seconds_from_end <= 0 or seconds_from_end > 600:
raise ValueError("Clip length must be positive and less than or equal to 10 minutes") raise ValueError("Clip length must be positive and less than or equal to 10 minutes")
clip_output = Config().get_clip_output() clip_output = config.get_clip_output()
os.makedirs(clip_output, exist_ok=True) os.makedirs(clip_output, exist_ok=True)
output_file_name = f"{datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')}.mp4" output_file_name = f"{datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')}.mp4"