From 5bc33509ec6290f31b037aebaec42692c1965baf Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Sat, 19 Sep 2026 09:55:03 -0600 Subject: [PATCH] Reformat dump. I don't have the source on my laptop, so I'll regenerate the dump on my desktop. --- utils/dump.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/utils/dump.py b/utils/dump.py index 5c5d65c..6627078 100644 --- a/utils/dump.py +++ b/utils/dump.py @@ -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 = {