Skip to content

Commit

Permalink
[tumangaonline] add website support (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronny1982 authored Mar 23, 2024
1 parent 9b378df commit f9e623a
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 23 deletions.
7 changes: 7 additions & 0 deletions web/src/engine/websites/TuMangaOnline.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { Page } from '../providers/MangaPlugin';
import { DecoratableMangaScraper, type Chapter } from '../providers/MangaPlugin';
export default class extends DecoratableMangaScraper {
constructor();
get Icon(): string;
FetchPages(chapter: Chapter): Promise<Page[]>;
}
2 changes: 2 additions & 0 deletions web/src/engine/websites/TuMangaOnline.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
51 changes: 51 additions & 0 deletions web/src/engine/websites/TuMangaOnline_e2e.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import { TestFixture, type Config } from '../../../test/WebsitesFixture';

const configs: Config[] = [
// CASE: Redirection
{
plugin: {
id: 'tumangaonline',
title: 'TuMangaOnline'
},
container: {
url: 'https://visortmo.com/library/manhwa/63944/enlanube',
id: '/library/manhwa/63944/enlanube',
title: 'En la nube'
},
child: {
id: '/view_uploads/1408620',
title: 'Capítulo 97.00 [RE HOMOS SCAN] (es)'
},
entry: {
index: 5,
size: 53_022,
type: 'image/webp'
}
},
// CASE: Extraction
{
plugin: {
id: 'tumangaonline',
title: 'TuMangaOnline'
},
container: {
url: 'https://visortmo.com/library/manhwa/34395/pheromone-holic',
id: '/library/manhwa/34395/pheromone-holic',
title: 'Pheromone Holic'
},
child: {
id: '/view_uploads/558145',
title: 'Capítulo 53.00 Adicta a la Feromona [FINAL] [Plot Twist No Fansub] (es)'
},
entry: {
index: 1,
size: 149_946,
type: 'image/webp'
}
}
];

for(const config of configs) {
const fixture = new TestFixture(config);
describe(fixture.Name, () => fixture.AssertWebsite());
}
2 changes: 1 addition & 1 deletion web/src/engine/websites/_index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ export { default as TRWebtoon } from './TRWebtoon';
export { default as Tsumino } from './Tsumino';
export { default as TukangKomik } from './TukangKomik';
export { default as TuMangaNet } from './TuMangaNet';
export { default as TuMangaOnline } from './TuMangaOnline';
export { default as TuMangaOnlineHentai } from './TuMangaOnlineHentai';
export { default as TuManhwas } from './TuManhwas';
export { default as TurkceMangaOku } from './TurkceMangaOku';
Expand Down Expand Up @@ -842,7 +843,6 @@ export { default as ToomicsTC } from './legacy/ToomicsTC';
export { default as Toonkor } from './legacy/Toonkor';
export { default as TruyenTranhLH } from './legacy/TruyenTranhLH';
export { default as TsundokuTraducoes } from './legacy/TsundokuTraducoes';
export { default as TuMangaOnline } from './legacy/TuMangaOnline';
export { default as VerComicsPorno } from './legacy/VerComicsPorno';
export { default as VerMangasPorno } from './legacy/VerMangasPorno';
export { default as VizShonenJump } from './legacy/VizShonenJump';
Expand Down
Loading

0 comments on commit f9e623a

Please sign in to comment.