One folder per meeting (out/<name>/source.*, transcript.txt, meta.json, logs/), out/_global; speaker transcript from DB; throwaway Edge profile; skip shots only when all images exist

This commit is contained in:
Stefano Zini
2026-11-03 16:02:05 +01:00
parent a479853372
commit f855768f1f
11 changed files with 85 additions and 76 deletions
+2 -1
View File
@@ -35,7 +35,8 @@ def _run(name):
gl = json.loads((d / "glossary.json").read_text(encoding="utf-8")) if (d / "glossary.json").exists() else []
from shots import CONTENT_KINDS
screens = list(dict.fromkeys(s["title"] for s in shots if s.get("lead") and s["kind"] in CONTENT_KINDS and s.get("title")))[:30]
txt = (db.OUT / f"{name}.txt").read_text(encoding="utf-8") if (db.OUT / f"{name}.txt").exists() else ""
tx = db.out_dir(name) / "transcript.txt"
txt = tx.read_text(encoding="utf-8") if tx.exists() else ""
desc = f"Titolo: {title}\nSchermate: {'; '.join(screens)}\nGlossario: {', '.join(gl[:40])}\nTrascrizione (inizio): {' '.join(txt.split()[:800])}"
queries = [title] if title else []