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 = [
|
report_globs = [
|
||||||
"CUTTER_REPORT.html",
|
"CUTTER_REPORT.html",
|
||||||
"CUTTER_REPORT.md",
|
"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_*_compare.mp4",
|
||||||
"output/cutter_clips/beat_*_source.mp4",
|
"output/cutter_clips/beat_*_source.mp4",
|
||||||
"output/cutter_clips/beat_*_source_seg*.mp4",
|
"output/cutter_clips/beat_*_source_seg*.mp4",
|
||||||
@@ -149,12 +145,8 @@ def _regenerate_cutter_report(cfg: "AppConfig") -> None: # type: ignore[name-de
|
|||||||
md, html = render_report(project_root, with_stills=True, with_clips=True)
|
md, html = render_report(project_root, with_stills=True, with_clips=True)
|
||||||
(project_root / "CUTTER_REPORT.md").write_text(md, encoding="utf-8")
|
(project_root / "CUTTER_REPORT.md").write_text(md, encoding="utf-8")
|
||||||
(project_root / "CUTTER_REPORT.html").write_text(html, encoding="utf-8")
|
(project_root / "CUTTER_REPORT.html").write_text(html, encoding="utf-8")
|
||||||
|
|
||||||
legacy_report_path = project_root / "output" / "report" / "match_report.html"
|
logging.getLogger(__name__).info("Cutter report regenerated (md + html + compare clips)")
|
||||||
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)")
|
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.getLogger(__name__).warning("Cutter report regen failed: %s", 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.
|
scene and segment info, score warnings, and rematch hints.
|
||||||
|
|
||||||
This report is the single source of truth for the video editor and is
|
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):
|
Usage (from project root):
|
||||||
python scripts/generate_cutter_report.py # stills + compare clips
|
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.md").write_text(md, encoding="utf-8")
|
||||||
(project_root / "CUTTER_REPORT.html").write_text(html, 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.md'}")
|
||||||
print(f"Wrote {project_root / 'CUTTER_REPORT.html'}")
|
print(f"Wrote {project_root / 'CUTTER_REPORT.html'}")
|
||||||
print(f"Wrote {legacy_path}")
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user