metadata.py: Fix directory to be created

This commit is contained in:
Simon Bruder 2021-11-30 19:37:21 +01:00
parent 21ffb24003
commit 95c09e3dae
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -72,6 +72,6 @@ for file in sorted(glob(f"public/{common.ACRONYM}*/index.html")):
parser.feed(f.read())
metadata = parser.data
os.makedirs("static/podlove", exist_ok=True)
os.makedirs("static/episodes", exist_ok=True)
with open(f"static/episodes/{episode}.podlove.json", "w") as f:
f.write(json.dumps(metadata))