From 52f200689c25858365dc2356bd59bf6989c43a51 Mon Sep 17 00:00:00 2001 From: MikeZeDev Date: Wed, 2 Aug 2023 11:12:43 +0000 Subject: [PATCH] FIX Alphapolis: fix manga listing --- src/web/mjs/connectors/Alphapolis.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/mjs/connectors/Alphapolis.mjs b/src/web/mjs/connectors/Alphapolis.mjs index d5ee79f7be4..a62b12b8960 100644 --- a/src/web/mjs/connectors/Alphapolis.mjs +++ b/src/web/mjs/connectors/Alphapolis.mjs @@ -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);