Adding some fixe

This commit is contained in:
2026-05-09 13:06:37 +02:00
parent efd1eba5df
commit a351022a8f
+4 -4
View File
@@ -292,13 +292,13 @@ def parse_slides(
) -> dict[str, SlideDefinition]:
"""Parse slides.json into slide definitions."""
if config and config.slides_path:
local_slides_path = project_path / config.slides_path
# Lowercase the path so that a capital-cased project name embedded by
# the import stage (e.g. "media/slides/Video2/slides.json") resolves
# correctly on case-sensitive filesystems (WSL/Linux).
local_slides_path = project_path / config.slides_path.lower()
else:
local_slides_path = project_path / "slides.json"
# Resolve case-insensitively before cache lookup (handles Mac vs WSL casing).
local_slides_path = _resolve_case_insensitive(local_slides_path)
# Try cache fallback for reading JSON
slides_path, _ = resolve_with_cache(local_slides_path, project_path)
if not slides_path.exists():