Skip to content

Commit

Permalink
xperimental
Browse files Browse the repository at this point in the history
  • Loading branch information
K1ngfish3r authored Oct 15, 2023
1 parent 223b510 commit e723172
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sources/en/lnmtl.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const parseChapter = async (novelUrl, chapterUrl) => {
};

const searchNovels = async searchTerm => {
const url = 'https://lnmtl.com/term';
const url = 'https://lnmtl.com/';

const result = await fetch(url);
const body = await result.text();
Expand All @@ -162,8 +162,7 @@ const searchNovels = async searchTerm => {
.next()
.next()
.html()
.match(/local: \[(.*?)\]/)[0]
.replace('local: ', '');
.match(/prefetch: '\/(.*json)/)[1];

novels = JSON.parse(novels);

Expand Down

0 comments on commit e723172

Please sign in to comment.