Skip to content

Commit

Permalink
FIX: AsuraScans: domain change (#6026)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev authored and Sheepux committed Jan 2, 2024
1 parent df40abb commit 35a941a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/web/mjs/connectors/AsuraScans.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ export default class AsuraScans extends WordPressMangastream {
super.id = 'asurascans';
super.label = 'Asura Scans';
this.tags = ['webtoon', 'english'];
this.url = 'https://www.asurascans.com';
this.url = 'https://asura.gg';
this.path = '/manga/list-mode/';

this.queryPages = 'div#readerarea p img';
this.requestOptions.headers.set('x-user-agent', 'Mozilla/5.0 (Linux; Android 9; Pixel) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4026.0 Mobile Safari/537.36');
}
Expand All @@ -18,9 +17,10 @@ export default class AsuraScans extends WordPressMangastream {
const excludes = [
/panda_gif_large/i,
/2021\/04\/page100-10\.jpg/i,
/2021\/03\/20-ending-page-\.jpg/i
/2021\/03\/20-ending-page-\.jpg/i,
/ENDING-PAGE/i
];
const images = await super._getPages(chapter);
return images.filter(link => !excludes.some(rgx => rgx.test(link)));
}
}
}

0 comments on commit 35a941a

Please sign in to comment.