Skip to content

Commit

Permalink
DemonSect : use MangaStream
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev committed Aug 1, 2024
1 parent 0bb8c5f commit 817daf6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
12 changes: 6 additions & 6 deletions web/src/engine/websites/DemonSect.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { Tags } from '../Tags';
import icon from './DemonSect.webp';
import { DecoratableMangaScraper } from '../providers/MangaPlugin';
import * as Madara from './decorators/WordPressMadara';
import * as MangaStream from './decorators/WordPressMangaStream';
import * as Common from './decorators/Common';

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

public constructor() {
super('demonsect', 'Demon Sect', 'https://dsectcomics.org', Tags.Media.Manhua, Tags.Media.Manhwa, Tags.Language.Portuguese, Tags.Source.Scanlator);
super('demonsect', 'Demon Sect', 'https://dsectcomics.org', Tags.Media.Manhua, Tags.Media.Manhwa, Tags.Language.Portuguese, Tags.Source.Scanlator, Tags.Accessibility.RegionLocked);
}

public override get Icon() {
Expand Down
16 changes: 7 additions & 9 deletions web/src/engine/websites/DemonSect_e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,21 @@ const config = {
plugin: {
id: 'demonsect',
title: 'Demon Sect',
//timeout: 25000
},
container: {
url: 'https://dsectcomics.org/comics/reencarnacao-maldita/',
id: JSON.stringify({ post: '684', slug: '/comics/reencarnacao-maldita/' }),
title: 'Reencarna��o Maldita',
//timeout: 30000
id: '/comics/reencarnacao-maldita/',
title: 'Reencarnação Maldita',
},
child: {
id: '/comics/reencarnacao-maldita/cap-81/',
title: 'CAP. 81',
//timeout: 25000
id: '/reencarnacao-maldita-chapter-81-s2-fim/',
title: 'Capítulo 81 {S2 FIM}',
},
entry: {
index: 1,
size: 523_180,
type: 'image/webp',
size: 1_882_466,
type: 'image/jpeg',
timeout: 10000
}
};

Expand Down

0 comments on commit 817daf6

Please sign in to comment.