From 55ebf7534096ba98e10006f470ee7054a4f790c5 Mon Sep 17 00:00:00 2001 From: MikeZeDev Date: Mon, 11 Sep 2023 08:44:12 +0000 Subject: [PATCH] FIX Mgkomik : change domain (#6209) and adjust manga listing Fixes https://github.com/manga-download/hakuneko/issues/6208 --- src/web/mjs/connectors/Mgkomik.mjs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/web/mjs/connectors/Mgkomik.mjs b/src/web/mjs/connectors/Mgkomik.mjs index f3cb91fc44..52f1bfd21b 100644 --- a/src/web/mjs/connectors/Mgkomik.mjs +++ b/src/web/mjs/connectors/Mgkomik.mjs @@ -7,6 +7,19 @@ export default class Mgkomik extends WordPressMadara { super.id = 'mgkomik'; super.label = 'MGKOMIK'; this.tags = [ 'webtoon', 'indonesian' ]; - this.url = 'https://mgkomik.com'; + this.url = 'https://mgkomik.id/'; + this.queryMangas = 'div.manga div > a'; } -} \ No newline at end of file + + async _getMangasFromPage(page) { + let request = this._createMangaRequest(page); + let data = await this.fetchDOM(request, this.queryMangas); + return data.map(element => { + return { + id: this.getRootRelativeOrAbsoluteLink(element, request.url), + title: element.title.trim() + }; + }); + } + +}