ReadNovelFull: fix genres

This commit is contained in:
Rajarshee Chatterjee
2021-04-03 10:00:02 +05:30
parent 1a957b7312
commit ad79a2da6a
+4 -4
View File
@@ -72,12 +72,12 @@ router.get("/novel/:novelUrl", (req, res) => {
.siblings() .siblings()
.text(); .text();
novel["Genre(s)"] = $("li > h3") novel["Genre(s)"] = $("li")
.filter(function () { .filter(function () {
return $(this).text().trim() === "Genre:"; return $(this).find("h3").text().trim() === "Genre:";
}) })
.siblings() .text()
.text(); .replace("Genre:", "");
novel["Artist(s)"] = null; novel["Artist(s)"] = null;