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 = {