Skip to content

Commit

Permalink
indowebnovel
Browse files Browse the repository at this point in the history
  • Loading branch information
K1ngfish3r committed Nov 22, 2023
1 parent 90d0caf commit f18c23c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions src/sources/es/tunovelaligera.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,19 @@ const parseNovelAndChapters = async novelUrl => {

novelChapters.push({ chapterName, releaseDate, chapterUrl });
});
await delay(1000);
await delay(2000);
}
return novelChapters.reverse();
};

novel.chapters = await getChapters();
if (!novel.chapters.length) {
showToast('¡Archivo no encontrado!');
await delay(1000);
novel.chapters = await getPageChapters();
}
// novel.chapters = await getChapters();
// if (!novel.chapters.length) {
// showToast('¡Archivo no encontrado!');
// await delay(1000);
//
// }

novel.chapters = await getPageChapters();

return novel;
};
Expand Down
2 changes: 1 addition & 1 deletion src/sources/id/indowebnovel.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const parseChapter = async (novelUrl, chapterUrl) => {
let loadedCheerio = cheerio.load(body);

const chapterName = loadedCheerio('.title-chapter').text();
const chapterText = loadedCheerio('.reader').html();
const chapterText = loadedCheerio('.entry-pagination').next().html();

const chapter = {
sourceId,
Expand Down

0 comments on commit f18c23c

Please sign in to comment.