Skip to content

Commit

Permalink
FIX Mgkomik : change domain (#6209)
Browse files Browse the repository at this point in the history
and adjust manga listing

Fixes #6208
  • Loading branch information
MikeZeDev authored and Sheepux committed Jan 2, 2024
1 parent 0e86bf8 commit d68259f
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/web/mjs/connectors/Mgkomik.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
}

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()
};
});
}

}

0 comments on commit d68259f

Please sign in to comment.