fix(source):Fix ReadLightNovel's Novel Info

This commit is contained in:
Rajarshee Chatterjee
2022-06-12 13:53:15 +05:30
parent 5f83104171
commit e68c72ce02
+3 -3
View File
@@ -62,14 +62,14 @@ const parseNovelAndChapters = async (novelUrl: string) => {
loadedCheerio('.novel-detail-item').each(function () {
const detailName = loadedCheerio(this)
.find('.novel-detail-header > h6')
.text();
.find('.novel-detail-header ')
.text()
.trim();
const detail = loadedCheerio(this).find('.novel-detail-body').text().trim();
switch (detailName) {
case 'Genre':
genre = detail.trim().replace(/\s{2,}/g, ',');
break;
case 'Author(s)':
author = detail;