From 4d0d375dbb9e95d9df04ce4879e3e31805125093 Mon Sep 17 00:00:00 2001 From: gator Date: Thu, 17 Sep 2026 18:24:53 +0000 Subject: [PATCH] Honour the "and play" half once the audio is ready --- trailer.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/trailer.html b/trailer.html index 12cb369..a8f16b9 100644 --- a/trailer.html +++ b/trailer.html @@ -293,6 +293,18 @@ ((cs && cs.cuts) || []).forEach(function (x) { STATS[x.cut_id] = x; }); } pane.innerHTML = paneHtml(meta, r.draft); + + // "Prepare and play" promised both. Once the audio lands, play it. + if (REELWANT && String(PKG.reel_state || "") === "ready" && !REEL) { + REELWANT = false; + hideMsg("msg"); + var rl = await api("reel", { draft_id: id }); + if (rl.ok && (rl.shots || []).length) { + REEL = rl.shots; RAT = -1; + pane.innerHTML = paneHtml(meta, r.draft); + reelShow(0); + } + } } // The story the writer committed to before writing a shot. This is where a