Skip to content

Commit

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

@MangaStream.MangaCSS(/^{origin}\/manga\/[^/]+\/$/)
@MangaStream.MangasSinglePageCSS()
@MangaStream.ChaptersSinglePageCSS()
@MangaStream.PagesSinglePageJS(undefined, 'ts_reader.params.sources.shift().images;')
@Common.ImageAjax()
export default class extends DecoratableMangaScraper {

public constructor() {
super('seraphmanga', 'Seraph Manga', 'https://www.seraphmanga.com', Tags.Media.Manhwa, Tags.Media.Manhua, Tags.Language.Turkish, Tags.Source.Scanlator);
}

public override get Icon() {
return icon;
}
}
Binary file added web/src/engine/websites/SeraphManga.webp
Binary file not shown.
22 changes: 22 additions & 0 deletions web/src/engine/websites/SeraphManga_e2e.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { TestFixture } from '../../../test/WebsitesFixture';

new TestFixture({
plugin: {
id: 'seraphmanga',
title: 'Seraph Manga'
},
container: {
url: 'https://www.seraphmanga.com/manga/ben-regresor-degilim/',
id: '/manga/ben-regresor-degilim/',
title: 'Ben Regresör Değilim'
},
child: {
id: '/ben-regresor-degilim-24-bolum/',
title: 'Bölüm 24'
},
entry: {
index: 9,
size: 976_038,
type: 'image/png'
}
}).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 @@ -584,6 +584,7 @@ export { default as SekteKomik } from './SekteKomik';
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 SeriManga } from './SeriManga';
export { default as SetsuScans } from './SetsuScans';
export { default as Seven8te } from './Seven8te';
Expand Down

0 comments on commit 73d0adf

Please sign in to comment.