Skip to content

Commit

Permalink
Website Maintenance : Madara to Mangastream
Browse files Browse the repository at this point in the history
* IrisScanlator
* Mangacim
*Diskusscan
  • Loading branch information
MikeZeDev authored Sep 5, 2023
1 parent 9079a7a commit e18bffe
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 52 deletions.
10 changes: 5 additions & 5 deletions web/src/engine/websites/DiskusScan.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Tags } from '../Tags';
import icon from './DiskusScan.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(/^https?:\/\/diskusscan\.com\/manga\/[^/]+\/$/)
@Madara.MangasMultiPageAJAX()
@Madara.ChaptersSinglePageAJAXv1()
@Madara.PagesSinglePageCSS()
@MangaStream.MangaCSS(/^https?:\/\/diskusscan\.com\/manga\/[^/]+\/$/)
@MangaStream.MangasSinglePageCSS()
@MangaStream.ChaptersSinglePageCSS()
@MangaStream.PagesSinglePageCSS()
@Common.ImageAjax()
export default class extends DecoratableMangaScraper {

Expand Down
8 changes: 4 additions & 4 deletions web/src/engine/websites/DiskusScan_e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ const config = {
},
container: {
url: 'https://diskusscan.com/manga/shenwu-tianzun/',
id: JSON.stringify({ post: '802', slug: '/manga/shenwu-tianzun/' }),
id: '/manga/shenwu-tianzun/',
title: 'Shenwu Tianzun'
},
child: {
id: '/manga/shenwu-tianzun/capitulo-01/',
title: 'Capítulo 01'
id: '/shenwu-tianzun-capitulo-01/',
title: 'Chapter 01'
},
entry: {
index: 0,
size: 3_427_181,
size: 117_062,
type: 'image/jpeg'
}
};
Expand Down
10 changes: 5 additions & 5 deletions web/src/engine/websites/IrisScanlator.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Tags } from '../Tags';
import icon from './IrisScanlator.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(/^https?:\/\/irisscanlator\.com\.br\/manga\/[^/]+\/$/)
@Madara.MangasMultiPageAJAX()
@Madara.ChaptersSinglePageAJAXv2()
@Madara.PagesSinglePageCSS()
@MangaStream.MangaCSS(/^https?:\/\/irisscanlator\.com\.br\/manga\/[^/]+\/$/)
@MangaStream.MangasSinglePageCSS()
@MangaStream.ChaptersSinglePageCSS()
@MangaStream.PagesSinglePageJS()
@Common.ImageAjax()
export default class extends DecoratableMangaScraper {

Expand Down
9 changes: 5 additions & 4 deletions web/src/engine/websites/IrisScanlator_e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ const config = {
},
container: {
url: 'https://irisscanlator.com.br/manga/orenchi-no-maid-san/',
id: JSON.stringify({ post: '82', slug: '/manga/orenchi-no-maid-san/' }),
id: '/manga/orenchi-no-maid-san/',
title: 'Orenchi no Maid-san'
},
child: {
id: '/manga/orenchi-no-maid-san/capitulo-01/',
title: 'Capítulo 01'
id: '/orenchi-no-maid-san-capitulo-01/',
title: 'Chapter 01',
timeout : 15000
},
entry: {
index: 0,
size: 407_663,
size: 383_954,
type: 'image/jpeg'
}
};
Expand Down
33 changes: 9 additions & 24 deletions web/src/engine/websites/Mangacim.ts
Original file line number Diff line number Diff line change
@@ -1,36 +1,21 @@
// Auto-Generated export from HakuNeko Legacy
//import { Tags } from '../Tags';
import { Tags } from '../Tags';
import icon from './Mangacim.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(/^https?:\/\/www\.mangacim\.com\/manga\/[^/]+\/$/)
@Madara.MangasMultiPageAJAX()
@Madara.ChaptersSinglePageAJAXv1()
@Madara.PagesSinglePageCSS()
@MangaStream.MangaCSS(/^https?:\/\/mangacim\.com\/manga\/[^/]+\/$/)
@MangaStream.MangasSinglePageCSS()
@MangaStream.ChaptersSinglePageCSS()
@MangaStream.PagesSinglePageCSS()
@Common.ImageAjax()

export default class extends DecoratableMangaScraper {

public constructor() {
super('mangacim', 'Mangacim', 'https://www.mangacim.com'/*, Tags.Media., Tags.Language.*/);
super('mangacim', 'Mangacim', 'https://mangacim.com', Tags.Media.Manga, Tags.Media.Manhwa, Tags.Media.Manhua, Tags.Language.Turkish);
}

public override get Icon() {
return icon;
}
}

// Original Source
/*
class Mangacim extends WordPressMadara {
constructor() {
super();
super.id = 'mangacim';
super.label = 'Mangacim';
this.tags = [ 'manga', 'webtoon', 'turkish' ];
this.url = 'https://www.mangacim.com';
}
}
*/
}
20 changes: 10 additions & 10 deletions web/src/engine/websites/Mangacim_e2e.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import { TestFixture } from '../../../test/WebsitesFixture';
import { TestFixture } from '../../../test/WebsitesFixture';

const config = {
plugin: {
id: 'mangacim',
title: 'Mangacim'
}/*,
},
container: {
url: 'https://www.mangacim.com/manga/.../',
id: JSON.stringify({ post: '0', slug: '/manga/.../' }),
title: 'Manga ?'
url: 'https://mangacim.com/manga/dukun-99-gelini/',
id: '/manga/dukun-99-gelini/',
title: 'Dük’ün 99.Gelini'
},
child: {
id: '/manga/.../.../',
title: 'Chapter ?'
id: '/dukun-99-gelini-bolum-1/',
title: 'Bölüm 1'
},
entry: {
index: 0,
size: -1,
index: 1,
size: 265_312,
type: 'image/jpeg'
}*/
}
};

const fixture = new TestFixture(config);
Expand Down

0 comments on commit e18bffe

Please sign in to comment.