fix(source): LightNovelReader & ReadLightNovel: Fix Search and Description (Closes LNReader/lnreader-sources#212, Closes LNReader/lnreader-sources#214)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user