Skip to content

Commit

Permalink
FIX Alphapolis: fix manga listing
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev authored Aug 2, 2023
1 parent e57e974 commit 52f2006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/mjs/connectors/Alphapolis.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default class Alphapolis extends Connector {
async _getMangas() {
let mangaList = [];
const request = new Request(new URL('/manga/official/search', this.url), this.requestOptions);
const data = await this.fetchDOM(request, 'span:last-child > a');
const pageCount = parseInt(data[0].href.match(/(\d)+$/)[1]);
const data = await this.fetchDOM(request, 'div.paginator.section span a[rel="last"]');
const pageCount = parseInt(data[0].href.match(/(\d+)$/)[1]);
for(let page = 1; page <= pageCount; page++) {
let mangas = await this._getMangasFromPage(page);
mangaList.push(...mangas);
Expand Down

0 comments on commit 52f2006

Please sign in to comment.