diff --git a/src/web/mjs/connectors/LegacyScans.mjs b/src/web/mjs/connectors/LegacyScans.mjs index ff278eed315..e8f0a22efe8 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,13 @@ 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.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)); } }