From e68c72ce0239ea342ad9241f79ebdb4c545b3782 Mon Sep 17 00:00:00 2001 From: Rajarshee Chatterjee Date: Sun, 12 Jun 2022 13:53:15 +0530 Subject: [PATCH] fix(source):Fix ReadLightNovel's Novel Info --- src/sources/en/readlightnovel.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sources/en/readlightnovel.ts b/src/sources/en/readlightnovel.ts index c012d90b..2c05c0bb 100644 --- a/src/sources/en/readlightnovel.ts +++ b/src/sources/en/readlightnovel.ts @@ -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;