Reformat dump.

I don't have the source on my laptop, so I'll regenerate the dump on my
desktop.
This commit is contained in:
Benjamin A. Shelton 2026-09-19 09:55:03 -06:00
commit 5bc33509ec
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -16,13 +16,8 @@ for book in b:
for chapter in book["chapters"]:
if not os.path.exists(os.path.join(basepath, str(ch))):
os.mkdir(os.path.join(basepath, str(ch)), True)
with open(os.path.join(basepath, str(ch), "meta.json"), "wb") as fp:
fp.write(json.dumps({k: v for k, v in chapter.items() if k != "chapter"}).encode("utf8"))
with open(os.path.join(basepath, str(ch), "chapter.json"), "wb") as fp:
fp.write(json.dumps(chapter["chapter"]).encode("utf8"))
ch += 1
fp.write(json.dumps({k: v for k, v in chapter.items()}).encode("utf8"))
alias_map = {