Skip to content

Commit

Permalink
Add SushiScans (com & fr)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev committed Nov 4, 2024
1 parent eb99709 commit 20002d7
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 0 deletions.
Binary file modified web/src/engine/websites/SushiScans.webp
Binary file not shown.
21 changes: 21 additions & 0 deletions web/src/engine/websites/SushiScansCOM.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Tags } from '../Tags';
import icon from './SushiScansCOM.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([], 'ts_reader.params.sources.shift().images;')
@Common.ImageAjax()
export default class extends DecoratableMangaScraper {

public constructor() {
super('sushiscanscom', 'Sushi Scans (.COM)', 'https://sushi-scan.com', Tags.Media.Manga, Tags.Media.Manhwa, Tags.Media.Manhua, Tags.Language.French, Tags.Source.Aggregator);
}

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

const config: Config = {
plugin: {
id: 'sushiscanscom',
title: 'Sushi Scans (.COM)'
},
container: {
url: 'https://sushi-scan.com/manga/a-fantasy-lazy-life/',
id: '/manga/a-fantasy-lazy-life/',
title: 'A Fantasy Lazy Life'
},
child: {
id: '/a-fantasy-lazy-life-volume-1/',
title: 'Volume 1',
timeout: 10000
},
entry: {
index: 1,
size: 301_038,
type: 'image/webp'
}
};

new TestFixture(config).AssertWebsite();
21 changes: 21 additions & 0 deletions web/src/engine/websites/SushiScansFR.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Tags } from '../Tags';
import icon from './SushiScansCOM.webp';
import { DecoratableMangaScraper } from '../providers/MangaPlugin';
import * as MangaStream from './decorators/WordPressMangaStream';
import * as Common from './decorators/Common';

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

public constructor() {
super('sushiscansfr', 'Sushi Scans (.FR)', 'https://sushiscan.fr', Tags.Media.Manga, Tags.Media.Manhwa, Tags.Media.Manhua, Tags.Language.French, Tags.Source.Aggregator);
}

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

const config: Config = {
plugin: {
id: 'sushiscansfr',
title: 'Sushi Scans (.FR)'
},
/* CloudFlare
container: {
url: 'https://sushiscan.fr/catalogue/a-fantasy-lazy-life/',
id: '/catalogue/a-fantasy-lazy-life/',
title: 'A Fantasy Lazy Life'
},
child: {
id: '/a-fantasy-lazy-life-volume-1-vf/',
title: 'Volume 1'
},
entry: {
index: 1,
size: 301_038,
type: 'image/webp'
}*/
};

new TestFixture(config).AssertWebsite();
2 changes: 2 additions & 0 deletions web/src/engine/websites/_index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,8 @@ export { default as SumManga } from './SumManga';
export { default as Summertoon } from './Summertoon';
export { default as SundayWebry } from './SundayWebry';
export { default as SushiScans } from './SushiScans';
export { default as SushiScansCOM } from './SushiScansCOM';
export { default as SushiScansFR } from './SushiScansFR';
export { default as SweetTimeScan } from './SweetTimeScan';
export { default as Tapas } from './Tapas';
export { default as TappyToon } from './TappyToon';
Expand Down

0 comments on commit 20002d7

Please sign in to comment.