From 8d93cc24ec7cb664a7426e42fc501254d325a453 Mon Sep 17 00:00:00 2001 From: Dogfather Date: Thu, 5 Nov 2026 15:11:03 +0100 Subject: [PATCH] =?UTF-8?q?Runde=206:=20Reaction-Clips=20ohne=20YouTube-Bi?= =?UTF-8?q?ld=20(Video=20und=20Stelle=20an=20den=20Dienst),=20Vorschaubild?= =?UTF-8?q?er=20in=20Clips=20zuschneiden,=20die=20vier=20st=C3=A4rksten=20?= =?UTF-8?q?Momente=20als=20Clip-Vorschlag=20im=20Nachbericht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- server/pruef-clipschnitt-blick.mjs | 4 +- server/pruef-nachschauen-blick.mjs | 15 +++ workspace/anleitung.html | 28 ++--- workspace/anruf-probe.html | 10 +- workspace/app.webmanifest | 8 +- workspace/assets/css/clipschnitt.css | 1 + workspace/assets/css/nachbericht.css | 4 + workspace/assets/js/clipschnitt.js | 2 + workspace/assets/js/nachbericht.js | 17 ++- workspace/assets/js/reaktion.js | 1 + workspace/assets/js/untertitel.js | 8 +- workspace/aufgaben.html | 38 +++--- workspace/automation.html | 32 +++--- workspace/befinden.html | 34 +++--- workspace/bereich.html | 48 ++++---- workspace/bewerben.html | 38 +++--- workspace/bewerbungen.html | 36 +++--- workspace/buehne.html | 12 +- workspace/calls.html | 34 +++--- workspace/chat.html | 48 ++++---- workspace/content.html | 34 +++--- workspace/crew-index.html | 12 +- workspace/crew.webmanifest | 8 +- workspace/dateien.html | 34 +++--- workspace/dogtags.html | 38 +++--- workspace/entwicklung.html | 36 +++--- workspace/fernbedienung.html | 20 ++-- workspace/hilfe.html | 30 ++--- workspace/index.html | 10 +- workspace/kalender.html | 34 +++--- workspace/koppeln.html | 14 +-- workspace/leistung.html | 32 +++--- workspace/manager-ziele.html | 30 ++--- workspace/material.html | 32 +++--- workspace/nachbericht.html | 22 ++-- workspace/notizen.html | 28 ++--- workspace/personen.html | 32 +++--- workspace/probesaal.html | 14 +-- workspace/profil.html | 36 +++--- workspace/reaktion-foyer.html | 36 +++--- workspace/reaktion.html | 166 +++++++++++++-------------- workspace/rechte.html | 34 +++--- workspace/report.html | 36 +++--- workspace/scouting.html | 32 +++--- workspace/start.html | 40 +++---- workspace/startcheck.html | 34 +++--- workspace/steckbrief.html | 36 +++--- workspace/support.html | 32 +++--- workspace/tafel.html | 10 +- workspace/talente.html | 36 +++--- workspace/team.html | 32 +++--- workspace/teamlage.html | 34 +++--- workspace/teilen.html | 30 ++--- workspace/treff-moderation.html | 32 +++--- workspace/treff-regeln.html | 32 +++--- workspace/uebersicht.html | 32 +++--- workspace/unsere-seiten.html | 30 ++--- workspace/unterstuetzen.html | 32 +++--- workspace/werdegang.html | 32 +++--- workspace/willkommen.html | 2 +- workspace/wissen.html | 34 +++--- 61 files changed, 884 insertions(+), 844 deletions(-) diff --git a/server/pruef-clipschnitt-blick.mjs b/server/pruef-clipschnitt-blick.mjs index 7750ee4e..8c8d8e1c 100644 --- a/server/pruef-clipschnitt-blick.mjs +++ b/server/pruef-clipschnitt-blick.mjs @@ -213,7 +213,7 @@ await seite.evaluate(() => { window.Untertitel.schicke = (o) => { if (window.__getrennt) return false; window.__gesendet.push(o); - if (o.art === "clips") antwort({ art: "clips", ordner: "C:\\Users\\qciga\\Videos\\TikTok-Clips", liste: [{ datei: "20261105-2101-BLUE-MOON-Streife.mp4", groesse: 18400000 }, { datei: "20261105-2044-BLUE-MOON-Verfolgung.mp4", groesse: 21000000 }] }); + if (o.art === "clips") antwort({ art: "clips", ordner: "C:\\Users\\qciga\\Videos\\TikTok-Clips", liste: [{ datei: "20261105-2101-BLUE-MOON-Streife.mp4", groesse: 18400000, bild: "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAP" }, { datei: "20261105-2044-BLUE-MOON-Verfolgung.mp4", groesse: 21000000 }] }); if (o.art === "welle") antwort({ art: "welle", datei: o.datei, ok: true, dauer: 30, werte: Array.from({ length: 120 }, (_, i) => Math.abs(Math.sin(i / 7)) * (i > 40 && i < 70 ? 0.9 : 0.2)) }); if (o.art === "schneiden") antwort({ art: "geschnitten", ok: true, datei: `${o.datei.replace(".mp4", "")}-geschnitten-${Math.floor(o.von)}-${Math.floor(o.bis)}.mp4` }); return true; @@ -222,6 +222,8 @@ await seite.evaluate(() => { await seite.evaluate(() => window.ClipSchnitt.oeffnen()); await warte(400); const l1 = await seite.evaluate(() => ({ offen: !document.getElementById("cs-tafel").hidden, n: document.querySelectorAll("#cs-liste .cs-wahl").length, lage: document.getElementById("cs-lage").textContent })); +const bilder = await seite.evaluate(() => document.querySelectorAll("#cs-liste .cs-bild").length); +ok(bilder === 1, `ein Clip mit Vorschaubild zeigt es, einer ohne nicht (${bilder})`); ok(l1.offen && l1.n === 2 && /2 Clips/.test(l1.lage), `die Tafel fragt den Dienst nach den Clips und zeigt sie (${JSON.stringify(l1)})`); await seite.click("#cs-liste .cs-wahl"); await warte(400); diff --git a/server/pruef-nachschauen-blick.mjs b/server/pruef-nachschauen-blick.mjs index 77217af9..7c7465f3 100644 --- a/server/pruef-nachschauen-blick.mjs +++ b/server/pruef-nachschauen-blick.mjs @@ -328,6 +328,21 @@ const hm = await seite.evaluate(() => ({ breit: document.documentElement.scrollW ok(hm.breit, `Handy: nichts ragt hinaus (${JSON.stringify(hm)})`); if (BILDER) await seite.screenshot({ path: `${BILDER}/nachschauen-390.png`, fullPage: false }); +/* Die stärksten Momente als Clip-Vorschlag (Runde 6): nur die Regie sieht die + Minuten, also nur dort; der Zuschauer bekommt keinen (Gegenprobe). */ +const gastClip = await seite.evaluate(() => document.querySelectorAll('#nb-liste [data-clip="ja"]').length); +const kr = await browser.newContext({ viewport: { width: 1280, height: 900 }, ignoreHTTPSErrors: true }); +await kr.addCookies(k.admin.split("; ").filter(Boolean).map((z) => { const [n2, ...r] = z.split("="); return { name: n2, value: r.join("="), domain: CREW, path: "/" }; })); +const rs = await kr.newPage(); +await rs.addInitScript(FAKE_YT); +await rs.goto(`${BASIS}/workspace/nachbericht.html?id=${v1.id}`, { waitUntil: "domcontentloaded" }); +await rs.waitForFunction(() => window.__nb?.da, null, { timeout: 15000 }).catch(() => {}); +await rs.evaluate((id) => { const w = document.getElementById("nb-wahl"); if (w && w.value !== String(id)) { w.value = String(id); w.dispatchEvent(new Event("change", { bubbles: true })); } }, v1.id); +await rs.waitForTimeout(1200); +const regieClip = await rs.evaluate(() => [...document.querySelectorAll('#nb-liste [data-clip="ja"]')].map((x) => x.textContent)); +ok(regieClip.length === 1 && /Clip-Vorschlag/.test(regieClip[0]) && gastClip === 0, `der stärkste Moment ist als Clip-Vorschlag markiert – bei der Regie, nicht beim Zuschauer (${regieClip.length} / ${gastClip})`); +await kr.close(); + /* ---------- Teil 3: im Saal: Schalter + Hinweis ----------------------- */ await roh("/workspace/api/reaktion", { method: "PUT", keks: k.admin, rumpf: { titel: "Dritter Abend", video: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" } }); for (const st of ["vorbereitung", "live"]) await roh("/workspace/api/reaktion/stand", { method: "POST", keks: k.admin, rumpf: { stand: st } }); diff --git a/workspace/anleitung.html b/workspace/anleitung.html index ca3fb906..0733e849 100644 --- a/workspace/anleitung.html +++ b/workspace/anleitung.html @@ -7,17 +7,17 @@ - - - - - + + + + + - - + + @@ -289,16 +289,16 @@ Und anleitung.js braucht es doppelt: Symbol, Farbe, Name und Adresse jeder Karte kommen von dort, nicht vom Server. --> - + - - - - - - + + + + + + diff --git a/workspace/anruf-probe.html b/workspace/anruf-probe.html index e9ba0105..5161dc01 100644 --- a/workspace/anruf-probe.html +++ b/workspace/anruf-probe.html @@ -16,8 +16,8 @@ verdeckt. Gefunden hat es pruef-struktur. Richtig sind `gate.css` (die Farbwerte des Hauses) und `haus.css`. --> - - + + - +