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:
parent
69b28d649f
commit
5bc33509ec
1 changed files with 1 additions and 6 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue