From c22440195deac92f6a7fd58fa3519f63ed0dced1 Mon Sep 17 00:00:00 2001 From: Rajarshee Chatterjee Date: Sun, 26 Dec 2021 10:48:08 +0530 Subject: [PATCH] MyLoveNovel: Fix description (Closes LNReader/lnreader-sources#137) --- src/sources/en/mylovenovel.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sources/en/mylovenovel.js b/src/sources/en/mylovenovel.js index d51c6449..4b519192 100644 --- a/src/sources/en/mylovenovel.js +++ b/src/sources/en/mylovenovel.js @@ -53,7 +53,7 @@ const parseNovelAndChapters = async novelUrl => { author: '', status: Status.UNKNOWN, genre: '', - summary: '', + summary: null, chapters: [], }; @@ -61,7 +61,9 @@ const parseNovelAndChapters = async novelUrl => { novel.novelCover = loadedCheerio('img.bookimg').attr('src'); - novel.summary = loadedCheerio('.intro').text().trim(); + novel.summary = loadedCheerio('meta[name="description"]') + .attr('content') + .trim(); novel.author = loadedCheerio('#info > div.main > div.detail > p:nth-child(3)') .text()