fix(source): LightNovelReader & ReadLightNovel: Fix Search and Description (Closes LNReader/lnreader-sources#212, Closes LNReader/lnreader-sources#214)

This commit is contained in:
Rajarshee Chatterjee
2022-05-03 11:29:36 +05:30
parent d484380734
commit 1c2dce3a44
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -85,7 +85,7 @@ const parseNovelAndChapters = async (novelUrl: string) => {
: undefined;
novel.summary = loadedCheerio(
'body > section:nth-child(4) > div > div > div.col-12.col-xl-9 > div > div:nth-child(3) > div',
'body > section:nth-child(4) > div > div > div.col-12.col-xl-9 > div > div:nth-child(5)',
)
.text()
.trim();
@@ -156,7 +156,7 @@ const parseChapter = async (novelUrl: string, chapterUrl: string) => {
};
const searchNovels = async (searchTerm: string) => {
const url = `${baseUrl}/detailed-search`;
const url = `${baseUrl}/detailed-search-lnr`;
const formData = new FormData();
formData.append('keyword', searchTerm);
+1 -1
View File
@@ -4,7 +4,7 @@ import { SourceChapter, SourceChapterItem, SourceNovelItem } from '../types';
const sourceId = 2;
const sourceName = 'ReadLightNovel';
const baseUrl = 'https://www.readlightnovel.me';
const searchUrl = 'https://www.readlightnovel.me/detailed-search';
const searchUrl = 'https://www.readlightnovel.me/detailed-search-rln';
const popularNovels = async (page: number) => {
let totalPages = 1751;