Use empty values by default

This allows content rendering with an almost-empty YAML file
This commit is contained in:
Jerome Petazzoni
2020-10-22 14:13:11 +02:00
parent 19c9843a81
commit 410c98399e

View File

@@ -94,6 +94,10 @@ def generatefromyaml(manifest, filename):
if override:
manifest[k] = override
for k in ["chat", "gitrepo", "slides", "title"]:
if k not in manifest:
manifest[k] = ""
if "zip" not in manifest:
if manifest["slides"].endswith('/'):
manifest["zip"] = manifest["slides"] + "slides.zip"