diff --git a/livres_en.js b/livres_en.js index 997f92e..3287164 100644 --- a/livres_en.js +++ b/livres_en.js @@ -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) => { diff --git a/livres_fr.js b/livres_fr.js index 9c700bb..e74a193 100644 --- a/livres_fr.js +++ b/livres_fr.js @@ -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(' ')