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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user