EinherjarProject: fix genres

This commit is contained in:
Rajarshee Chatterjee
2021-06-02 10:14:01 +05:30
parent 752e4d9baa
commit 6a675be3bd
@@ -84,6 +84,11 @@ const novelScraper = async (req, res) => {
}
});
novel["Genre(s)"] = $(".post-content > h6")
.text()
.replace(/GÉNEROS: /, "")
.replace(/,\s/g, ",");
let novelSummary = $(".post-content > .has-text-align-center").html();
novel.novelSummary = htmlToText(novelSummary);