From 320e06b0c9bb3cfdd07edbe5fac24db3ca81491e Mon Sep 17 00:00:00 2001 From: gator Date: Sat, 19 Sep 2026 18:01:15 +0000 Subject: [PATCH] Film it again asks for another take, and says so --- trailer.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/trailer.html b/trailer.html index ef61d34..47de6d6 100644 --- a/trailer.html +++ b/trailer.html @@ -1276,8 +1276,16 @@ } if ((el = hit("data-filmone"))) { el.disabled = true; - r = await act("film_one_shot_now", { draft_id: CUR, shot_id: el.getAttribute("data-filmone") }); - if (r) await refresh(); return; + // "Film it again" means ANOTHER TAKE. Without `force` the worker sees an + // unchanged request, correctly notes it would send identical bytes, and + // does nothing - so the button an author presses to get a better take + // gave them the same one and no explanation. + var fsid1 = el.getAttribute("data-filmone"); + var had = (PKG.shots || []).some(function (x) { return String(x.id) === fsid1 && x.clip_url; }); + r = await act("film_one_shot_now", { draft_id: CUR, shot_id: fsid1, force: had }); + if (r) { showMsg("msg", (had ? "Filming another take of shot " : "Filming shot ") + fsid1 + + ", about $" + r.usd + ". It takes a minute or two.", "ok"); await refresh(); } + return; } if ((el = hit("data-delete"))) { if (!confirm("Remove shot " + el.getAttribute("data-delete") + " from this trailer?")) return;