add archive

This commit is contained in:
jaehwang committed 2026-09-09 09:19:22 +09:00
1 parent 2c13e75a92
commit 7a667d8a5f
5 files changed
+119 -12

No files matched your search

+7 -5
View File
@@ -135,15 +135,16 @@ def clip_review(task: PlayreelTask) -> dict:
def final_checks(task: PlayreelTask) -> list[dict]:
"""컬럼으로 확인되는 것만 낸다 — 완성본을 다시 열어 본 결과가 아니다."""
verdict = TitleGateVerdict.model_validate(task.title_gate or {"passed": True})
"""컬럼으로 확인되는 것만 낸다 — 완성본을 다시 열어 본 결과가 아니다.
제목 훼손 검사는 넣지 않는다. 비교 기준이 되는 좌표를 detect가 만드는데
playreel에는 그 단계가 없어 검사 자체가 돌지 않는다.
"""
plan = LongcutPlan.model_validate(task.scene_plan or {"scenes": []})
scroll_tags = {scene.tag for scene in plan.scenes if scene.kind == "scroll"}
return [
{"key": "hybrid", "label": "원본 글자 합성",
"ok": bool(task.hybrid_clip_url)},
{"key": "title", "label": "제목 훼손 검사",
"ok": verdict.passed and not verdict.skip},
{"key": "scroll", "label": "상세페이지 스크롤",
"ok": any(scene.kind == "scroll" for scene in plan.scenes)},
{"key": "schedule", "label": "캐스팅 스케줄 포함",
@@ -156,7 +157,8 @@ def final_checks(task: PlayreelTask) -> list[dict]:
def final_review(task: PlayreelTask) -> dict:
return {
"video_url": task.video_url or "",
"proof_url": task.compose_proof_url or task.hybrid_proof_url or "",
# hybrid 시트는 앞 8초짜리라 완성본 검수 자리에 대신 세우지 않는다
"proof_url": task.compose_proof_url or "",
"duration": task.video_duration or 0.0,
"checks": final_checks(task),
"version": task.version + 1,