This commit is contained in:
parent
38f54fcd5d
commit
d351c118a4
@ -52,7 +52,7 @@ const fetchPage = async (url) => {
|
||||
|
||||
content.each((i, el) => {
|
||||
if (i % 2 === 0) {
|
||||
volume = html(el).text().replace(/Volume /, '')
|
||||
volume = html(el).text().replace(/Volume /, '').trim()
|
||||
books.push(metadata(volume))
|
||||
} else {
|
||||
html('a', el).each((i, el) => {
|
||||
|
@ -48,7 +48,7 @@ for (let i = 1; i <= MAX_VOLUME; i++) {
|
||||
if (title.html() === null) return
|
||||
|
||||
let text = html('div > div', el)
|
||||
text = html(text).attr('style', '')
|
||||
text.attr('style', '')
|
||||
|
||||
const titleFirst = title.first()
|
||||
titleFirst.find('br').replaceWith(' ')
|
||||
|
Reference in New Issue
Block a user