Foxaholic: Fix genre

This commit is contained in:
Rajarshee Chatterjee
2021-05-30 16:07:46 +05:30
parent 11e84efa03
commit 20cc94f77f
+8
View File
@@ -76,6 +76,14 @@ const novelScraper = async (req, res) => {
novel[detailName] = detail;
});
novel["Genre(s)"] = novel.Genre.replace(/, /g, ",");
novel["Author(s)"] = novel.Author;
novel.Status = null;
novel["Artist(s)"] = null;
delete novel.Genre;
delete novel.Author;
$(".description-summary > div.summary__content").find("em").remove();
novel.novelSummary = $(".description-summary > div.summary__content")