boxnovel: fix novel description

This commit is contained in:
Rajarshee Chatterjee
2021-01-04 22:43:45 +05:30
parent 7d81961657
commit ebd84872c3
+9 -1
View File
@@ -88,7 +88,15 @@ router.get("/novel/:novelUrl", (req, res) => {
novel[detailName] = detail;
});
novel.novelSummary = $(".c_000").text();
$(".description-summary > div.summary__content").find("em").remove();
novel.novelSummary = $(".description-summary > div.summary__content")
.text()
.replace(/[\t\n]/g, "");
// if (novel.novelSummary === "") {
// novel.novelSummary = $(".c_000").text();
// }
let novelChapters = [];