From 18c11151cb62771ffc0ba98f07cf58a777ebbaec Mon Sep 17 00:00:00 2001 From: MikeZeDev Date: Fri, 1 Sep 2023 09:21:21 +0000 Subject: [PATCH 1/2] FIX ReaperScansID : change domain & filter ads Fixes https://github.com/manga-download/hakuneko/issues/6181 --- src/web/mjs/connectors/ReaperScansID.mjs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/web/mjs/connectors/ReaperScansID.mjs b/src/web/mjs/connectors/ReaperScansID.mjs index 618b1a47001..b0b93443020 100644 --- a/src/web/mjs/connectors/ReaperScansID.mjs +++ b/src/web/mjs/connectors/ReaperScansID.mjs @@ -6,12 +6,19 @@ export default class ReaperScansID extends WordPressMadara { super.id = 'reaperscansid'; super.label = 'Shinigami ID'; this.tags = ['webtoon', 'indonesian', 'scanlation']; - this.url = 'https://shinigami.id'; + this.url = 'https://shinigami.ae'; this.queryChapters = 'div.chapter-link > a'; this.queryChaptersTitleBloat ='span.chapter-release-date'; this.links = { - login: 'https://shinigami.id/login' + login: 'https://shinigami.ae/login' }; } + + async _getPages(chapter) { + return (await super._getPages(chapter)).filter(picture => { + const pic= JSON.parse(atob(new URL(picture).searchParams.get('payload'))); + return pic.url.match(/WP-Manga/i); + }); + } } From a70db3a383c11f9b4f4d6a9f47b08d27b517df42 Mon Sep 17 00:00:00 2001 From: MikeZeDev Date: Fri, 1 Sep 2023 09:44:14 +0000 Subject: [PATCH 2/2] simplified ads filtering --- src/web/mjs/connectors/ReaperScansID.mjs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/web/mjs/connectors/ReaperScansID.mjs b/src/web/mjs/connectors/ReaperScansID.mjs index b0b93443020..4780546db31 100644 --- a/src/web/mjs/connectors/ReaperScansID.mjs +++ b/src/web/mjs/connectors/ReaperScansID.mjs @@ -9,16 +9,9 @@ export default class ReaperScansID extends WordPressMadara { this.url = 'https://shinigami.ae'; this.queryChapters = 'div.chapter-link > a'; this.queryChaptersTitleBloat ='span.chapter-release-date'; - + this.queryPages = 'div.page-break source[data-src]'; this.links = { login: 'https://shinigami.ae/login' }; } - - async _getPages(chapter) { - return (await super._getPages(chapter)).filter(picture => { - const pic= JSON.parse(atob(new URL(picture).searchParams.get('payload'))); - return pic.url.match(/WP-Manga/i); - }); - } }