Skip to content

Commit

Permalink
Merge pull request #5 from hyuse202/fix-blogtruyen/getListLatestUpdate
Browse files Browse the repository at this point in the history
Fix[blogtruyen]: method .getListLatestUpdate() when page > 1
  • Loading branch information
zcrossoverz committed Jul 3, 2023
2 parents 6296d7b + 9f8d2d3 commit 9c85d57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/blogtruyen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,7 @@ export class Blogtruyen implements AbstractMangaFactory {
if (req.resourceType() !== 'document') req.abort();
else req.continue();
});
await _page.goto(`${this.baseUrl}${page > 1 ? `/?page=${page}` : ``}`);

await _page.goto(`${this.baseUrl}${page > 1 ? `/page-${page}` :``}`);
const element = await _page.$$(
'#wrapper > section.main-content > div > div:nth-child(1) > section.list-mainpage > div:nth-child(1) > div > div'
);
Expand Down

0 comments on commit 9c85d57

Please sign in to comment.