Skip to content

Commit

Permalink
Add AsuraScansFree
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev committed Dec 19, 2024
1 parent 876ac04 commit dc5e355
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
21 changes: 21 additions & 0 deletions web/src/engine/websites/AsuraScansFree.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Tags } from '../Tags';
import icon from './AsuraScans.webp';
import { DecoratableMangaScraper } from '../providers/MangaPlugin';
import * as MangaStream from './decorators/WordPressMangaStream';
import * as Common from './decorators/Common';

@MangaStream.MangaCSS(/^{origin}\/serie\/[^/]+\/$/)
@MangaStream.MangasSinglePageCSS(undefined, '/serie/list-mode/')
@MangaStream.ChaptersSinglePageCSS()
@MangaStream.PagesSinglePageJS()
@Common.ImageAjax()
export default class extends DecoratableMangaScraper {

public constructor() {
super('arurascansfree', 'Asura Scans Free', 'https://asurascansfree.com', Tags.Media.Manhwa, Tags.Media.Manhua, Tags.Language.English, Tags.Source.Aggregator);
}

public override get Icon() {
return icon;
}
}
24 changes: 24 additions & 0 deletions web/src/engine/websites/AsuraScansFree_e2e.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { TestFixture, type Config } from '../../../test/WebsitesFixture';

const config: Config = {
plugin: {
id: 'arurascansfree',
title: 'Asura Scans Free',
},
container: {
url: 'https://asurascansfree.com/serie/academys-genius-swordmaster/',
id: '/serie/academys-genius-swordmaster/',
title: 'Academy’s Genius Swordmaster',
},
child: {
id: '/academys-genius-swordmaster-chapter-1/',
title: 'Chapter 1',
},
entry: {
index: 1,
size: 822_646,
type: 'image/webp'
}
};

new TestFixture(config).AssertWebsite();
1 change: 1 addition & 0 deletions web/src/engine/websites/_index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export { default as AsmHentai } from './AsmHentai';
export { default as AstralManga } from './AstralManga';
export { default as AstraScans } from './AstraScans';
export { default as AsuraScans } from './AsuraScans';
export { default as AsuraScansFree } from './AsuraScansFree';
export { default as AsuraScansTR } from './AsuraScansTR';
export { default as Atikrost } from './Atikrost';
export { default as AyaToon } from './AyaToon';
Expand Down

0 comments on commit dc5e355

Please sign in to comment.