metadata.py: Fix directory to be created

master
Simon Bruder 2021-11-30 19:37:21 +01:00
parent 21ffb24003
commit 95c09e3dae
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 1 additions and 1 deletions

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))