Make cutter report the only generated review report
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -104,10 +104,6 @@ def _auto_commit_push_reports(project_root: "Path") -> None: # type: ignore[nam
|
||||
report_globs = [
|
||||
"CUTTER_REPORT.html",
|
||||
"CUTTER_REPORT.md",
|
||||
"output/report/match_report.html",
|
||||
"output/report/beat_*_compare.mp4",
|
||||
"output/report/beat_*_src.mp4",
|
||||
"output/report/beat_*_ref.mp4",
|
||||
"output/cutter_clips/beat_*_compare.mp4",
|
||||
"output/cutter_clips/beat_*_source.mp4",
|
||||
"output/cutter_clips/beat_*_source_seg*.mp4",
|
||||
@@ -150,11 +146,7 @@ def _regenerate_cutter_report(cfg: "AppConfig") -> None: # type: ignore[name-de
|
||||
(project_root / "CUTTER_REPORT.md").write_text(md, encoding="utf-8")
|
||||
(project_root / "CUTTER_REPORT.html").write_text(html, encoding="utf-8")
|
||||
|
||||
legacy_report_path = project_root / "output" / "report" / "match_report.html"
|
||||
legacy_report_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
legacy_report_path.write_text(html, encoding="utf-8")
|
||||
|
||||
logging.getLogger(__name__).info("Cutter report regenerated (md + html + compare clips + legacy match_report.html)")
|
||||
logging.getLogger(__name__).info("Cutter report regenerated (md + html + compare clips)")
|
||||
except Exception as exc:
|
||||
logging.getLogger(__name__).warning("Cutter report regen failed: %s", exc)
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ Renders two editor-facing reports:
|
||||
scene and segment info, score warnings, and rematch hints.
|
||||
|
||||
This report is the single source of truth for the video editor and is
|
||||
designed to eventually replace the legacy match_report.html.
|
||||
the only report that should be opened for review.
|
||||
|
||||
Usage (from project root):
|
||||
python scripts/generate_cutter_report.py # stills + compare clips
|
||||
@@ -1082,13 +1082,9 @@ def main() -> int:
|
||||
)
|
||||
(project_root / "CUTTER_REPORT.md").write_text(md, encoding="utf-8")
|
||||
(project_root / "CUTTER_REPORT.html").write_text(html, encoding="utf-8")
|
||||
legacy_path = project_root / "output" / "report" / "match_report.html"
|
||||
legacy_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
legacy_path.write_text(html, encoding="utf-8")
|
||||
|
||||
print(f"Wrote {project_root / 'CUTTER_REPORT.md'}")
|
||||
print(f"Wrote {project_root / 'CUTTER_REPORT.html'}")
|
||||
print(f"Wrote {legacy_path}")
|
||||
return 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user