diff --git a/src/web/mjs/connectors/Alphapolis.mjs b/src/web/mjs/connectors/Alphapolis.mjs index d5ee79f7be..a62b12b896 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);