diff --git a/admin.html b/admin.html index 4d68983..3abfdb2 100644 --- a/admin.html +++ b/admin.html @@ -132,6 +132,72 @@ function shotHtml(s) { ? '
The request body actually POSTed
'
           + esc(s.request_sent) + '
' : '') + // THE MEDIA. A fault is understood by relating four things, and until + // now the panel showed none of them: the cut that went in the film, the + // RAW take before cutting, the seed frame it grew from, and the audio we + // handed the engine. The raw take is the one that separates "the engine + // never said it" from "we cut it off" - the distinction that cost a day + // on shot 03, where the missing word was in the take all along. + + (function () { + var bits = []; + if (s.clip_url) { + bits.push('
the cut used in the film' + + (s.clip_seconds ? ' · ' + s.clip_seconds + 's' : '') + '
' + + '
'); + } + if (s.take_url) { + bits.push('
the raw take, before cutting
' + + '
'); + } + if (s.plate_url) { + bits.push('
the seed frame it was filmed from
' + + 'seed frame
'); + } + (s.audio_urls || []).forEach(function (u, i) { + bits.push('
audio sent to the engine' + + ((s.audio_urls.length > 1) ? ' (' + (i + 1) + ')' : '') + '
' + + '
'); + }); + return bits.length + ? '
' + bits.join('') + '
' + : ''; + })() + // What was asked for against what was paid for. They differ whenever a + // shot was re-rolled, and showing the second as "duration" is what made a + // 9 second request read as 15. + + ((s.source_seconds || s.billed_seconds) + ? '
asked for ' + (s.source_seconds || '?') + 's' + + ((s.billed_seconds && s.billed_seconds !== s.source_seconds) + ? ' · billed ' + s.billed_seconds + 's (re-rolled)' : '') + + '
' + : '') + // What the line was meant to say and what the render-time check heard. + + ((s.audio_said || []).length + ? '
' + (s.audio_said || []).map(function (a) { + return 'said: ' + esc(a.text || '') + '' + + (a.verdict ? ' · recording ' + esc(a.verdict) : '') + + (a.seconds ? ' · ' + a.seconds + 's' : ''); + }).join('
') + '
' + : '') + + (s.audio_check + ? '
in the film: ' + esc(s.audio_check) + + (s.audio_heard ? ' · heard "' + esc(s.audio_heard) + '"' : '') + + '
' + : '') + // The picture verdict, beside the frame it happened in. + + (s.vision_check + ? '
picture: ' + esc(s.vision_check) + '
' + + (s.vision_faults || []).map(function (f) { + return '
' + esc(f.kind || '') + ': ' + + esc(f.what || '') + + (f.prompt_fix ? '
fix: ' + esc(f.prompt_fix) + '' : '') + + '
'; + }).join('') + : '') + ''; }