Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manhuagold : fix manga list, clipboard and chapters #7186

Merged
merged 1 commit into from
Jun 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/web/mjs/connectors/ComicKiba.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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),
Expand All @@ -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()
};
});
}
Expand Down
Loading