Adding some fixes
This commit is contained in:
+14
-3
@@ -2066,7 +2066,18 @@ def _print_render_plan_details(plan, marker_timings, slides: dict) -> None:
|
||||
print(f' {marker_id:6} {time_str} "{context}"')
|
||||
else:
|
||||
unaligned_count += 1
|
||||
print(f' {marker_id:6} ??:??.?? NOT ALIGNED - "{context}"')
|
||||
# Check if this is a slide that was interpolated into the plan
|
||||
if marker_id in slides:
|
||||
interp_event = next(
|
||||
(e for e in plan.slide_events if e.slide_id == marker_id), None
|
||||
)
|
||||
if interp_event:
|
||||
interp_str = _format_time(interp_event.start_time)
|
||||
print(f' {marker_id:6} ~{interp_str} INTERPOLATED - "{context}"')
|
||||
else:
|
||||
print(f' {marker_id:6} ??:??.?? NOT ALIGNED - "{context}"')
|
||||
else:
|
||||
print(f' {marker_id:6} ??:??.?? NOT ALIGNED - "{context}"')
|
||||
|
||||
print(" " + "-" * 76)
|
||||
|
||||
@@ -2302,9 +2313,9 @@ def cmd_render(
|
||||
if verbose:
|
||||
print(f" Using combined narration: {combined_path.name}")
|
||||
else:
|
||||
# Check if narration.json exists (new workflow) - if so, require narration_combined
|
||||
# Check if narration.json exists with segments (new workflow) - if so, require narration_combined
|
||||
narration_json = project_path / "media" / "narration" / "narration.json"
|
||||
if narration_json.exists():
|
||||
if narration_json.exists() and _read_json(narration_json):
|
||||
print(
|
||||
f"Error: narration_combined not found in videos.json", file=sys.stderr
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user