diff --git a/livres.js b/livres.js index bfc331f..64d2c7b 100644 --- a/livres.js +++ b/livres.js @@ -30,6 +30,7 @@ const fetchPage = async (url) => { const title = html('h1.entry-title').text() const content = html('div.entry-content') content.find('a').remove() + content.find('hr').remove() content.find('div.tiled-gallery').remove() const data = content.html() diff --git a/package.json b/package.json index 71970e1..58e1485 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "license": "ISC", "dependencies": { "cheerio": "1.0.0-rc.10", - "epub-gen": "git+https://github.com/Xefir/epub-gen.git", + "epub-gen-funstory": "0.1.3", "node-fetch": "2.6.1" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index e9abe29..63713bc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -593,9 +593,10 @@ entities@^2.0.0: resolved "https://registry.yarnpkg.com/entities/-/entities-2.2.0.tgz#098dc90ebb83d8dffa089d55256b351d34c4da55" integrity sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A== -"epub-gen@git+https://github.com/Xefir/epub-gen.git": +epub-gen-funstory@0.1.3: version "0.1.3" - resolved "git+https://github.com/Xefir/epub-gen.git#01c86b48d9c347710b4c12a8cd74e7a634dbdcd4" + resolved "https://registry.yarnpkg.com/epub-gen-funstory/-/epub-gen-funstory-0.1.3.tgz#16d818f402880d8d5bf9c5a590c5aaccf3c7c64e" + integrity sha512-80ea9hd4+LHQkiUOrR87oGR62k8oRpT3Sxjam5CkMle+CATqiXLpNQoTRNdSfmz6J1CENTq4GCXNFNnlNVTiDw== dependencies: archiver "^3.0.0" cheerio "^0.22.0"