From 0f3c595c04ded307385adc3be3d4676255986781 Mon Sep 17 00:00:00 2001 From: jenstandstad Date: Mon, 3 Aug 2026 16:25:46 +0200 Subject: [PATCH] Make outro file case ingorant --- gnommo/parser.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnommo/parser.py b/gnommo/parser.py index 99f7b70..accb514 100644 --- a/gnommo/parser.py +++ b/gnommo/parser.py @@ -340,7 +340,11 @@ def parse_project_config(project_path: Path) -> ProjectConfig: process_cache=data.get("process_cache"), default_begin=float(data.get("default_begin", 0.0)), default_end_trim=float(data.get("default_end_trim", 0.0)), - outro=data.get("outro", []), + # Video handles are stored lowercased in videos.json (import lowercases the + # key), so normalise outro handles too — otherwise a project.json entry like + # "OutroVideo6" fails the case-sensitive lookup against key "outrovideo6" and + # the render reports it "not found in videos.json" even though it's there. + outro=[str(o).lower() for o in data.get("outro", [])], description=data.get("description", ""), footer=data.get("footer", ""), output_video=data.get("output_video", ""),