Read light novel fixes (#11)

* Remove "Sponsored Content" string in ChapterText

* Fix Chapter content appearing twice in ChapterText

* Fix id name
This commit is contained in:
Bread Genie
2021-05-09 20:58:57 +05:30
committed by GitHub
parent 3c4c6a31aa
commit a5e9373c4a
@@ -153,9 +153,10 @@ const chapterScraper = async (req, res) => {
});
$(".alert").remove();
$("#growfoodsmart").remove();
let chapterText = $(".desc").html();
chapterText = htmlToText(chapterText);
chapterText = htmlToText(chapterText).replace(/\n\nSponsored Content\n\n/g, "");
let nextChapter = null;