Skip to content

Commit

Permalink
FIX KomikCast: domain and getpages
Browse files Browse the repository at this point in the history
Fixes #6132

For some reason domain init fails with JS.
  • Loading branch information
MikeZeDev authored Aug 23, 2023
1 parent 50fb293 commit 78f01c5
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/web/mjs/connectors/KomikCast.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,23 @@ export default class KomikCast extends WordPressMangastream {
super.id = 'komikcast';
super.label = 'KomikCast';
this.tags = [ 'manga', 'indonesian' ];
this.url = 'https://komikcast.io';
this.url = 'https://komikcast.vip';
this.path = '/daftar-komik/?list';

this.queryMangas = 'div.text-mode_list-items ul li a.series, div.text-mode_list-items ul li a.text-mode_list-item';
this.queryChapters = 'div.komik_info-chapters ul li.komik_info-chapters-item a.chapter-link-item';
this.queryChaptersTitle = undefined;
this.queryPages = 'div.main-reading-area img[src^="http"], div.separator img[src^="http"]';
this.queryPages = 'div.main-reading-area source[src^="http"], div.separator source[src^="http"]';
}

async _initializeConnector() {
// do nothing on purpose
}

async _getPages(chapter) {
const uri = new URL(chapter.id, this.url);
const request = new Request(uri, this.requestOptions);
const data = await this.fetchDOM(request, this.queryPages);
return data.map(image => this.createConnectorURI(this.getAbsolutePath(image, request.url)));
}
}

0 comments on commit 78f01c5

Please sign in to comment.