Skip to content

Commit

Permalink
Fix ScanManga connector for french users (#2799)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcaylus authored and ronny1982 committed Dec 22, 2020
1 parent a013575 commit fc09630
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/web/mjs/connectors/ScanManga.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export default class ScanManga extends Connector {
super.label = 'ScanManga';
this.tags = [ 'manga', 'french', 'novel' ];
this.url = 'https://www.scan-manga.com';
// If not set, defaults to "fr" for french machines, which will return empty responses
// Only fail for "fr" language, and works for any other language, including "fr-FR" and random strings
this.requestOptions.headers.set('accept-language', 'en');
}

async _getMangaFromURI(uri) {
Expand Down Expand Up @@ -113,4 +116,4 @@ export default class ScanManga extends Connector {
this.requestOptions.headers.delete('x-referer');
return promise;
}
}
}

0 comments on commit fc09630

Please sign in to comment.