From fc6fddcb414fab008a8aa41581ebad0f0b6c890d Mon Sep 17 00:00:00 2001 From: MikeZeDev Date: Fri, 14 Jun 2024 19:26:43 +0000 Subject: [PATCH] Manhuagold : fix manga list, clipboard and chapters Fixes https://github.com/manga-download/hakuneko/issues/7185 --- src/web/mjs/connectors/ComicKiba.mjs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/web/mjs/connectors/ComicKiba.mjs b/src/web/mjs/connectors/ComicKiba.mjs index a90e6d59545..58be7a54ed0 100644 --- a/src/web/mjs/connectors/ComicKiba.mjs +++ b/src/web/mjs/connectors/ComicKiba.mjs @@ -13,8 +13,8 @@ export default class ComicKiba extends Connector { async _getMangaFromURI(uri) { const request = new Request(uri, this.requestOptions); - const [ data ] = await this.fetchDOM(request, 'div.anisc-detail .manga-name'); - return new Manga(this, data.pathname, data.textContent.trim()); + const [ data ] = await this.fetchDOM(request, 'article header h1'); + return new Manga(this, uri.pathname, data.textContent.trim()); } async _getMangas() { @@ -29,7 +29,7 @@ export default class ComicKiba extends Connector { async _getMangasFromPage(page) { const uri = new URL(`/all-manga/${page}/`, this.url); const request = new Request(uri, this.requestOptions); - const data = await this.fetchDOM(request, 'div.item div.manga-detail .manga-name a'); + const data = await this.fetchDOM(request, 'div.grid div.text-center a.clamp'); return data.map(element => { return { id: this.getRootRelativeOrAbsoluteLink(element, this.url), @@ -41,11 +41,11 @@ export default class ComicKiba extends Connector { async _getChapters(manga) { const uri = new URL(manga.id, this.url); const request = new Request(uri, this.requestOptions); - const data = await this.fetchDOM(request, 'ul#chapters-list li a.item-link'); + const data = await this.fetchDOM(request, 'ul#myUL li a'); return data.map(element => { return { id: this.getRootRelativeOrAbsoluteLink(element, this.url), - title: element.getAttribute('title').trim() + title: element.text.trim() }; }); }