NovelPassion & RoyalRoad: Minor fixes

This commit is contained in:
Rajarshee Chatterjee
2021-06-30 07:28:14 +05:30
parent 7300bad8a2
commit bfaf1981d0
2 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -59,8 +59,9 @@ const novelScraper = async (req, res) => {
novelName = $("h1").text();
novel.novelName = novelName;
novel["Author(s)"] = $("h1").next().text().replace("by ", "").trim();
novel.novelCover = $("#thumbnail > img").attr("src");
novel.novelCover = $("img.thumbnail").attr("src");
novel.novelSummary = $("div.description").text().trim();