WuxiaWorldCo: Fix chapterUrl
This commit is contained in:
@@ -156,7 +156,10 @@ const chapterScraper = async (req, res) => {
|
|||||||
$(".hidden").remove();
|
$(".hidden").remove();
|
||||||
|
|
||||||
let chapterText = $(".desc").html();
|
let chapterText = $(".desc").html();
|
||||||
chapterText = htmlToText(chapterText).replace(/\n\nSponsored Content\n\n/g, "");
|
chapterText = htmlToText(chapterText).replace(
|
||||||
|
/\n\nSponsored Content\n\n/g,
|
||||||
|
""
|
||||||
|
);
|
||||||
|
|
||||||
let nextChapter = null;
|
let nextChapter = null;
|
||||||
|
|
||||||
|
|||||||
@@ -68,9 +68,7 @@ const novelScraper = async (req, res) => {
|
|||||||
$(".chapter-item").each(function (result) {
|
$(".chapter-item").each(function (result) {
|
||||||
const chapterName = $(this).find(".chapter-name").text();
|
const chapterName = $(this).find(".chapter-name").text();
|
||||||
const releaseDate = null;
|
const releaseDate = null;
|
||||||
const chapterUrl = $(this)
|
const chapterUrl = $(this).attr("href").split("/")[2];
|
||||||
.attr("href")
|
|
||||||
.replace("/" + novelUrl + "/", "");
|
|
||||||
|
|
||||||
novelChapters.push({
|
novelChapters.push({
|
||||||
chapterName,
|
chapterName,
|
||||||
|
|||||||
Reference in New Issue
Block a user