Updates for the 3 new chapters
- Adds a ~fin~ and the next date
This commit is contained in:
parent
1f2deebe39
commit
672862aede
12
setup.rb
12
setup.rb
|
@ -9,9 +9,17 @@ BASE = 'https://www.tor.com/2017/'
|
|||
links = [
|
||||
'08/22/oathbringer-brandon-sanderson-prologue/',
|
||||
'08/29/oathbringer-brandon-sanderson-chapter-1-3/',
|
||||
'09/05/oathbringer-by-brandon-sanderson-chapters-4-6/'
|
||||
'09/05/oathbringer-by-brandon-sanderson-chapters-4-6/',
|
||||
'09/12/oathbringer-by-brandon-sanderson-chapters-7-9/'
|
||||
]
|
||||
|
||||
links.last.split('/')
|
||||
|
||||
month = links.last.split('/').first
|
||||
day = links.last.split('/')[1]
|
||||
|
||||
next_date = Date.new(2017, month.to_i, day.to_i) + 7
|
||||
|
||||
episode = 1
|
||||
|
||||
for link in links
|
||||
|
@ -45,6 +53,8 @@ for i in 1..3
|
|||
html += page.inner_html
|
||||
end
|
||||
|
||||
html += "<p>~fin\~<br>Next 3 chapters out on #{next_date.to_s}</p>"
|
||||
|
||||
# Write it in the book
|
||||
File.open("Oathbringer.html", 'w') { |file| file.write(html) }
|
||||
puts "[html] Generated HTML file"
|
||||
|
|
Loading…
Reference in New Issue