Bug in transfer
This commit is contained in:
+8
-2
@@ -74,8 +74,14 @@ def _build_manifest(project_path: Path) -> list[str]:
|
||||
if (project_path / manuscript_rel).exists():
|
||||
files.add(manuscript_rel)
|
||||
|
||||
# Slide images + slides.json
|
||||
slides_rel = project.get("slides", "media/slides")
|
||||
# Slide images + slides.json.
|
||||
# The renderer reads this path lower-cased (parse_slides uses
|
||||
# config.slides_path.lower()), because import may embed a capital-cased
|
||||
# project name (e.g. "media/slides/Video3/" while the dir is "video3/").
|
||||
# Push to the SAME lower-cased location — otherwise on a case-sensitive
|
||||
# server 'up' writes media/slides/Video3/slides.json while render reads
|
||||
# media/slides/video3/slides.json and never sees the update.
|
||||
slides_rel = project.get("slides", "media/slides").lower()
|
||||
slides_path = project_path / slides_rel
|
||||
# slides might point directly to slides.json — include its parent dir
|
||||
if slides_path.is_file():
|
||||
|
||||
Reference in New Issue
Block a user