From 040b54a9a3c6b31a87fa06c3b6ae231320778058 Mon Sep 17 00:00:00 2001 From: Nemo Date: Fri, 15 Sep 2017 12:07:25 +0530 Subject: [PATCH] Fixes bug in chapter count --- setup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.rb b/setup.rb index 2a7616a..742a798 100644 --- a/setup.rb +++ b/setup.rb @@ -33,7 +33,7 @@ end # Now we have all the files html = "" -for i in 1..3 +for i in 1..(links.length) page = Nokogiri::HTML(open("html/#{i}.html")).css('.entry-content') start = ending = false page.children.each do |e|