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.
This commit is contained in:
pedro-bento 2026-10-11 21:10:05 +01:00
parent 47add55c5f
commit 87ccc3fa59
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

@ -413,7 +413,7 @@ export default function MediaInput({ onProcess, isProcessing }) {
<div>
<p className="eyebrow mb-1.5">clips to aim for</p>
<input
type="number" min="1" max="15" step="1"
type="number" min="1" max="31" step="1"
value={targetClips}
onChange={(e) => setTargetClips(e.target.value)}
placeholder="auto"