Skip to content

Commit

Permalink
FIX Alphapolis: fix manga listing (#6101)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev authored Aug 3, 2023
1 parent e619d92 commit 7114dee
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 7114dee

Please sign in to comment.