WuxiaWorldCo: Fix chapterUrl

This commit is contained in:
Rajarshee Chatterjee
2021-05-22 09:41:26 +05:30
parent 31452385b2
commit 5a986c7b73
2 changed files with 5 additions and 4 deletions
+1 -3
View File
@@ -68,9 +68,7 @@ const novelScraper = async (req, res) => {
$(".chapter-item").each(function (result) {
const chapterName = $(this).find(".chapter-name").text();
const releaseDate = null;
const chapterUrl = $(this)
.attr("href")
.replace("/" + novelUrl + "/", "");
const chapterUrl = $(this).attr("href").split("/")[2];
novelChapters.push({
chapterName,