From 6eb24202de79e1e287bc3f8524e9cbbcd0fca508 Mon Sep 17 00:00:00 2001 From: Tristan Date: Sat, 24 Jun 2023 05:47:23 +0200 Subject: [PATCH 1/3] LegacyScans: change to Mangastream They temporarily rebranded to flamescans.fr but are now back with flamescans mangastream theme. --- src/web/mjs/connectors/LegacyScans.mjs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/web/mjs/connectors/LegacyScans.mjs b/src/web/mjs/connectors/LegacyScans.mjs index ff278eed315..74eef0d7ac5 100644 --- a/src/web/mjs/connectors/LegacyScans.mjs +++ b/src/web/mjs/connectors/LegacyScans.mjs @@ -1,6 +1,6 @@ -import WordPressMadara from './templates/WordPressMadara.mjs'; +import WordPressMangastream from './templates/WordPressMangastream.mjs'; -export default class LegacyScans extends WordPressMadara { +export default class LegacyScans extends WordPressMangastream { constructor() { super(); @@ -8,5 +8,9 @@ export default class LegacyScans extends WordPressMadara { super.label = 'Legacy-Scans'; this.tags = ['webtoon', 'french']; this.url = 'https://legacy-scans.com'; + this.path = '/manga/list-mode/'; + + this.queryMangas = 'div.postbody div.soralist ul li a.series'; + this.queryChapters = 'div#chapterlist ul li a'; } } From 12f83e437743bf7c62bf55656450184347468ffa Mon Sep 17 00:00:00 2001 From: Tristan Date: Sun, 25 Jun 2023 00:10:38 +0200 Subject: [PATCH 2/3] LegacyScans: remove this.queryMangas --- src/web/mjs/connectors/LegacyScans.mjs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/web/mjs/connectors/LegacyScans.mjs b/src/web/mjs/connectors/LegacyScans.mjs index 74eef0d7ac5..ac2dd5f3b42 100644 --- a/src/web/mjs/connectors/LegacyScans.mjs +++ b/src/web/mjs/connectors/LegacyScans.mjs @@ -10,7 +10,6 @@ export default class LegacyScans extends WordPressMangastream { this.url = 'https://legacy-scans.com'; this.path = '/manga/list-mode/'; - this.queryMangas = 'div.postbody div.soralist ul li a.series'; this.queryChapters = 'div#chapterlist ul li a'; } } From 925a0da29da6a9baba6726fede10fa6b0b557be6 Mon Sep 17 00:00:00 2001 From: Tristan Date: Sun, 25 Jun 2023 00:15:09 +0200 Subject: [PATCH 3/3] LegacyScans: add referer --- src/web/mjs/connectors/LegacyScans.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/web/mjs/connectors/LegacyScans.mjs b/src/web/mjs/connectors/LegacyScans.mjs index ac2dd5f3b42..e8f0a22efe8 100644 --- a/src/web/mjs/connectors/LegacyScans.mjs +++ b/src/web/mjs/connectors/LegacyScans.mjs @@ -9,7 +9,12 @@ export default class LegacyScans extends WordPressMangastream { this.tags = ['webtoon', 'french']; this.url = 'https://legacy-scans.com'; this.path = '/manga/list-mode/'; + this.requestOptions.headers.set('x-referer', this.url); this.queryChapters = 'div#chapterlist ul li a'; } + + async _getPages(chapter) { + return (await super._getPages(chapter)).map(page => this.createConnectorURI(page)); + } }