From ebf9e50630c447d871953f8ee7c3c1600e80d093 Mon Sep 17 00:00:00 2001 From: Nemo Date: Sat, 6 Jun 2020 02:22:21 +0530 Subject: [PATCH] Adds chapters upto 19 --- README.md | 2 +- generate.sh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7dd0880..fabe3fe 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ickabog-ebook -Generates ebooks for The Ickabog by J.K Rowling. Original text from https://www.theickabog.com/ +Generates ebooks for The Ickabog by J.K Rowling. Original text from https://www.theickabog.com/. Since the book is still being published, please consider this "in-progress". ## Dependencies: diff --git a/generate.sh b/generate.sh index 996c691..2b1ceaa 100755 --- a/generate.sh +++ b/generate.sh @@ -24,8 +24,13 @@ download_chapter "the-kings-lost-sword/" "ch12" download_chapter "the-accident/" "ch13" download_chapter "lord-spittleworths-plan/" "ch14" download_chapter "the-king-returns/" "ch15" +download_chapter bert-says-goodbye/ ch16 +download_chapter goodfellow-makes-a-stand/ ch17 +download_chapter end-of-an-advisor/ ch18 +download_chapter lady-eslanda/ ch19 -for i in $(seq 1 15); do + +for i in $(seq 1 19); do CHAPTER_TITLE=$(cat "html/ch$i.html" | pup 'h1.entry-title:nth-child(2) text{}') echo "

$CHAPTER_TITLE

" >> "$HTML_FILE" cat "html/ch$i.html" | pup 'article div.row:nth-child(2) div.entry-content' >> "$HTML_FILE"