Skip to content

Commit

Permalink
Add Serenity Scans
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev committed Jan 5, 2025
1 parent 61c5356 commit aadf5d7
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 0 deletions.
21 changes: 21 additions & 0 deletions web/src/engine/websites/SerenityScans.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Tags } from '../Tags';
import icon from './SerenityScans.webp';
import { DecoratableMangaScraper } from '../providers/MangaPlugin';
import * as Common from './decorators/Common';
import * as KeyoApp from './templates/KeyoApp';

@Common.MangaCSS(/^{origin}\/series\/[^/]+\/$/, KeyoApp.queryMangaTitle)
@Common.MangasSinglePagesCSS([ KeyoApp.queryMangaPath ], KeyoApp.queryManga, Common.AnchorInfoExtractor(true))
@Common.ChaptersSinglePageCSS(KeyoApp.queryChapters, Common.AnchorInfoExtractor(true))
@Common.PagesSinglePageJS(KeyoApp.pagesScript, 500)
@Common.ImageAjax(true)
export default class extends DecoratableMangaScraper {

public constructor() {
super('serenityscans', 'Serenity Scans', 'https://serenityscans.com', Tags.Media.Manhwa, Tags.Media.Manhua, Tags.Language.English, Tags.Source.Scanlator);
}

public override get Icon() {
return icon;
}
}
Binary file added web/src/engine/websites/SerenityScans.webp
Binary file not shown.
24 changes: 24 additions & 0 deletions web/src/engine/websites/SerenityScans_e2e.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* NW.js crash on website initialize => CloudFlare
import { TestFixture } from '../../../test/WebsitesFixture';
new TestFixture({
plugin: {
id: 'serenityscans',
title: 'Serenity Scans'
},
container: {
url: 'https://serenityscans.com/series/92f742e22b0/',
id: '/series/92f742e22b0/',
title: 'The Demon Lord Regrets His Past Choices'
},
child: {
id: '/chapter/92f742e22b0-104eff33f8e/',
title: 'Chapter 1'
},
entry: {
index: 0,
size: 55_786,
type: 'image/jpeg'
}
}).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 @@ -590,6 +590,7 @@ export { default as SelfManga } from './SelfManga';
export { default as SenManga } from './SenManga';
export { default as SenpaiEdiciones } from './SenpaiEdiciones';
export { default as SeraphManga } from './SeraphManga';
export { default as SerenityScans } from './SerenityScans';
export { default as SeriManga } from './SeriManga';
export { default as SetsuScans } from './SetsuScans';
export { default as Seven8te } from './Seven8te';
Expand Down
1 change: 1 addition & 0 deletions web/src/engine/websites/templates/KeyoApp_e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ import '../NecroScans_e2e';
import '../ReaperScansFR_e2e';
import '../RezoScans_e2e';
import '../StarboundScans_e2e';
import '../SerenityScans_e2e';
import '../QuantumScans_e2e';

0 comments on commit aadf5d7

Please sign in to comment.