diff --git a/trailer.html b/trailer.html index 223cce2..558d271 100644 --- a/trailer.html +++ b/trailer.html @@ -181,9 +181,18 @@ function busyRun() { return RUN && /^(writing|reviewing|revising)$/.test(String(RUN.stage || "")); } + // Work happens in the worker's memory and does not survive a deploy, so a + // flag saying "in progress" is only believed while it is recent. + function stillFilming(s) { + if (!s.filming) return false; + var t = Date.parse(s.filming_since || ""); + if (!t) return false; // no stamp: from before this existed + return (Date.now() - t) < 25 * 60 * 1000; + } + function busyShots() { return (PKG.shots || []).some(function (s) { - return s.writing || s.drawing || s.filming; }); + return s.writing || s.drawing || stillFilming(s); }); } // Preparing the storyboard audio is work too. Without this the page stops @@ -859,7 +868,7 @@ var tools; if (s.drawing) tools = 'drawing…'; - else if (s.filming) tools = 'filming…'; + else if (stillFilming(s)) tools = 'filming…'; else if (EDITING === s.id) { tools = '
'