Let queued and player extensions use the full duration slider.

Stop clamping extensions to 3s or 5s so each segment can use the same length control as generate.
This commit is contained in:
2026-08-26 00:38:50 -05:00
parent 78087fbf5b
commit f4d8e1fb70
4 changed files with 131 additions and 144 deletions
+2 -1
View File
@@ -6,7 +6,8 @@ const SCHEDULERS = new Set(['simple', 'ddim_uniform', 'sgm_uniform'])
function parseExtendDuration(raw: unknown) {
const seconds = Number(raw)
return seconds === 3 || seconds === 5 ? seconds : 5
if (!Number.isFinite(seconds)) return 5
return Math.min(120, Math.max(0.5, Math.round(seconds * 10) / 10))
}
function frameLength(seconds: number, fps: number) {
+3 -4
View File
@@ -8,15 +8,14 @@ function isComfyBusyTimeout(error: unknown) {
return text.includes('still busy after 3 minutes')
}
function parseDuration(raw: string) {
function parseDuration(raw: unknown) {
const seconds = Number(raw)
if (!Number.isFinite(seconds)) return 5
return Math.min(120, Math.max(0.5, seconds))
return Math.min(120, Math.max(0.5, Math.round(seconds * 10) / 10))
}
function parseExtendDuration(raw: unknown) {
const seconds = Number(raw)
return seconds === 3 || seconds === 5 ? seconds : 5
return parseDuration(raw)
}
function parseExtensions(raw: string | undefined) {