From 87ccc3fa5988f439bdb658496af631ff982862f4 Mon Sep 17 00:00:00 2001 From: pedro-bento Date: Sun, 11 Oct 2026 21:10:05 +0100 Subject: [PATCH] feat(clips): raise "clips to aim for" ceiling from 15 to 31 The advanced-options control was capped at 15 in both the dashboard input and the /api/process validator. Lift both to 31 so callers can aim for longer clip batches; the value is still an honest target, not a guarantee. --- clipwright/api/app.py | 2 +- dashboard/src/components/MediaInput.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clipwright/api/app.py b/clipwright/api/app.py index f006d5d..2bf1aa6 100644 --- a/clipwright/api/app.py +++ b/clipwright/api/app.py @@ -2467,7 +2467,7 @@ async def process_endpoint( detail=f"{name} must be between {lo:g} and {hi:g}") return int(val) if integer else val - n_clips = _gen_control(target_clips, "target_clips", 1, 15, integer=True) + n_clips = _gen_control(target_clips, "target_clips", 1, 31, integer=True) min_secs = _gen_control(clip_min_seconds, "clip_min_seconds", 5, 175) max_secs = _gen_control(clip_max_seconds, "clip_max_seconds", 10, 180) if min_secs is not None and max_secs is not None and max_secs < min_secs + 5: diff --git a/dashboard/src/components/MediaInput.jsx b/dashboard/src/components/MediaInput.jsx index 564dd8f..e61c13d 100644 --- a/dashboard/src/components/MediaInput.jsx +++ b/dashboard/src/components/MediaInput.jsx @@ -413,7 +413,7 @@ export default function MediaInput({ onProcess, isProcessing }) {

clips to aim for

setTargetClips(e.target.value)} placeholder="auto"