Runde 6: Reaction-Clips ohne YouTube-Bild (Video und Stelle an den Dienst), Vorschaubilder in Clips zuschneiden, die vier stärksten Momente als Clip-Vorschlag im Nachbericht
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user