Skip to content

Commit

Permalink
fix clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev authored Jul 31, 2024
1 parent f0ae953 commit e91d753
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/web/mjs/connectors/Mikoroku.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ export default class Mikoroku extends Connector {
super.label = 'Mikoroku';
this.tags = [ 'manga', 'scanlation', 'indonesian' ];
this.url = 'https://www.mikoroku.web.id';
this.queryMangaTitle = 'header > h1';
this.queryMangaTitle = 'h1[itemprop="name"]';
}

async _getMangas() {
let mangalist = [];
const mangalist = [];
const request = new Request(new URL('/feeds/posts/default/-/Series?orderby=published&alt=json&max-results=999', this.url), this.requestOptions);
const { feed } = await this.fetchJSON(request);
feed.entry.map(manga => {
Expand Down Expand Up @@ -42,11 +42,10 @@ export default class Mikoroku extends Connector {
}

async _getChapterListFromPages(manga, mangaid) {
let chapterslist = [];
const request = new Request(new URL('/feeds/posts/default/-/'+mangaid+'?orderby=published&alt=json&max-results=999', this.url), this.requestOptions);
const { feed } = await this.fetchJSON(request);

chapterslist = feed.entry.map(entry => {
let chapterslist = feed.entry.map(entry => {
const goodLink = entry.link.find(link => link.rel === 'alternate');
return {
id: this.getRootRelativeOrAbsoluteLink(goodLink.href, request.url),
Expand All @@ -57,12 +56,12 @@ export default class Mikoroku extends Connector {
}

async _getPages(chapter) {
let scriptPages = `
const scriptPages = `
new Promise(resolve => {
resolve([...document.querySelectorAll('article#reader img')].map(img => img.src));
});
`;
let request = new Request(this.url + chapter.id, this.requestOptions);
const request = new Request(this.url + chapter.id, this.requestOptions);
return await Engine.Request.fetchUI(request, scriptPages);
}

Expand Down

0 comments on commit e91d753

Please sign in to comment.