Skip to content

Commit

Permalink
Fix PhenixScans: add referer for images (#6386)
Browse files Browse the repository at this point in the history
Fixes #6385
  • Loading branch information
MikeZeDev authored and Sheepux committed Jan 2, 2024
1 parent 7234c7f commit 86a4c2c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/web/mjs/connectors/PhenixScans.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@ export default class PhenixScans extends WordPressMangastream {
this.tags = [ 'manga', 'french', 'scanlation' ];
this.url = 'https://phenixscans.fr';
this.path = '/manga/list-mode';
this.requestOptions.headers.set('x-referer', this.url);
}
}

async _getPages(chapter) {
const pages = await super._getPages(chapter);
return pages.map(page => this.createConnectorURI(page));
}
}

0 comments on commit 86a4c2c

Please sign in to comment.