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:
+2
-1
@@ -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 []
|
||||
|
||||
Reference in New Issue
Block a user