Fix volume en
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2021-06-12 09:38:16 +02:00
parent 38f54fcd5d
commit d351c118a4
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ const fetchPage = async (url) => {
content.each((i, el) => { content.each((i, el) => {
if (i % 2 === 0) { if (i % 2 === 0) {
volume = html(el).text().replace(/Volume /, '') volume = html(el).text().replace(/Volume /, '').trim()
books.push(metadata(volume)) books.push(metadata(volume))
} else { } else {
html('a', el).each((i, el) => { html('a', el).each((i, el) => {

View File

@ -48,7 +48,7 @@ for (let i = 1; i <= MAX_VOLUME; i++) {
if (title.html() === null) return if (title.html() === null) return
let text = html('div > div', el) let text = html('div > div', el)
text = html(text).attr('style', '') text.attr('style', '')
const titleFirst = title.first() const titleFirst = title.first()
titleFirst.find('br').replaceWith(' ') titleFirst.find('br').replaceWith(' ')