From 82835ef4694dede7b4dd03425ff8d0e565aafb4e Mon Sep 17 00:00:00 2001 From: MikeZeDev Date: Tue, 9 Jul 2024 17:57:08 +0000 Subject: [PATCH 1/2] KomikTap : change domainn --- src/web/mjs/connectors/KomikTap.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/mjs/connectors/KomikTap.mjs b/src/web/mjs/connectors/KomikTap.mjs index 512c2b188c..1f36b0c88c 100644 --- a/src/web/mjs/connectors/KomikTap.mjs +++ b/src/web/mjs/connectors/KomikTap.mjs @@ -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/'; } } From 6d0b66087f6b5187c8326da7ea1a9b6063186522 Mon Sep 17 00:00:00 2001 From: MikeZeDev Date: Tue, 9 Jul 2024 18:09:26 +0000 Subject: [PATCH 2/2] KomikCast : change domain and fix getting pages & clipboard --- src/web/mjs/connectors/KomikCast.mjs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/web/mjs/connectors/KomikCast.mjs b/src/web/mjs/connectors/KomikCast.mjs index 78ea8e6211..db88966770 100644 --- a/src/web/mjs/connectors/KomikCast.mjs +++ b/src/web/mjs/connectors/KomikCast.mjs @@ -7,13 +7,14 @@ 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); } @@ -21,10 +22,4 @@ export default class KomikCast extends WordPressMangastream { // 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))); - } }