MyLoveNovel: Fix description (Closes LNReader/lnreader-sources#137)

This commit is contained in:
Rajarshee Chatterjee
2021-12-26 10:48:08 +05:30
parent dbb20e666f
commit c22440195d
+4 -2
View File
@@ -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()