Skip to content

Commit

Permalink
LegacyScans: change to Mangastream (#5944)
Browse files Browse the repository at this point in the history
* LegacyScans: change to Mangastream

They temporarily rebranded to flamescans.fr but are now back with flamescans mangastream theme.

* LegacyScans: remove this.queryMangas

* LegacyScans: add referer
  • Loading branch information
TristanWasTaken authored and Sheepux committed Jan 2, 2024
1 parent 6a2d56a commit 15c9865
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/web/mjs/connectors/LegacyScans.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
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();
super.id = 'legacyscans';
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));
}
}

0 comments on commit 15c9865

Please sign in to comment.