-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tumangaonline] add website support (#531)
- Loading branch information
Showing
6 changed files
with
61 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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[]>; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.