Make outro file case ingorant
This commit is contained in:
+5
-1
@@ -340,7 +340,11 @@ def parse_project_config(project_path: Path) -> ProjectConfig:
|
|||||||
process_cache=data.get("process_cache"),
|
process_cache=data.get("process_cache"),
|
||||||
default_begin=float(data.get("default_begin", 0.0)),
|
default_begin=float(data.get("default_begin", 0.0)),
|
||||||
default_end_trim=float(data.get("default_end_trim", 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", ""),
|
description=data.get("description", ""),
|
||||||
footer=data.get("footer", ""),
|
footer=data.get("footer", ""),
|
||||||
output_video=data.get("output_video", ""),
|
output_video=data.get("output_video", ""),
|
||||||
|
|||||||
Reference in New Issue
Block a user