Skip to content

Commit

Permalink
some domain changes (#7246)
Browse files Browse the repository at this point in the history
* KomikTap : change domainn

* KomikCast : change domain and fix getting pages & clipboard
  • Loading branch information
MikeZeDev authored and ronny1982 committed Jul 27, 2024
1 parent ed60e39 commit 2f73173
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions src/web/mjs/connectors/KomikCast.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,19 @@ export default class KomikCast extends WordPressMangastream {
super.id = 'komikcast';
super.label = 'KomikCast';
this.tags = [ 'manga', 'indonesian' ];
this.url = 'https://komikcast.ch';
this.url = 'https://komikcast.cz';
this.path = '/daftar-komik/?list';

this.querMangaTitleFromURI = 'h1.komik_info-content-body-title';
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 source.lazyload, div.separator source.lazyload';
this.queryPages = 'div.main-reading-area img';
this.requestOptions.headers.set('x-referer', this.url);
}

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.dataset['src'], this.url)));
}
}
2 changes: 1 addition & 1 deletion src/web/mjs/connectors/KomikTap.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default class KomikTap extends WordPressMangastream {
super.id = 'komiktap';
super.label = 'KomikTap';
this.tags = [ 'manga', 'webtoon', 'hentai', 'indonesian' ];
this.url = 'https://komiktap.me';
this.url = 'https://komiktap.info';
this.path = '/manga/list-mode/';
}
}

0 comments on commit 2f73173

Please sign in to comment.