Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Bilibilimanhua #521

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
77b56dc
Add Bilibilimanhua
MikeZeDev Mar 1, 2024
5a02ef2
Merge branch 'master' into bilibili
MikeZeDev Mar 23, 2024
dd6639f
Merge branch 'master' into bilibili
MikeZeDev Apr 26, 2024
e00f435
Merge branch 'master' into bilibili
MikeZeDev Apr 27, 2024
fe84075
fix case
MikeZeDev Apr 27, 2024
96f4103
Merge branch 'master' into bilibili
MikeZeDev May 7, 2024
75eaae2
Merge branch 'master' into bilibili
MikeZeDev Jun 6, 2024
dc1ea73
Merge branch 'master' into bilibili
MikeZeDev Jul 11, 2024
27000bf
Merge branch 'master' into bilibili
MikeZeDev Jul 28, 2024
0537777
Merge branch 'master' into bilibili
MikeZeDev Aug 14, 2024
a25dc89
Update BilibiliManhua.ts
MikeZeDev Aug 14, 2024
ffca21f
Merge branch 'master' into bilibili
MikeZeDev Aug 16, 2024
3bb33d7
Merge branch 'master' into bilibili
MikeZeDev Sep 9, 2024
d2a9757
polishing, add tests, move from legacy
MikeZeDev Oct 1, 2024
6f756b4
Merge branch 'master' into bilibili
MikeZeDev Oct 1, 2024
38b785f
Update _index.ts
MikeZeDev Oct 1, 2024
cfe531f
Merge branch 'master' into bilibili
MikeZeDev Oct 13, 2024
17aa7a4
fix generic type parameter
MikeZeDev Oct 13, 2024
0c7b2ed
Merge branch 'master' into bilibili
MikeZeDev Oct 17, 2024
74e2f3f
Update _index.ts
MikeZeDev Oct 17, 2024
d018079
Merge branch 'master' into bilibili
MikeZeDev Oct 27, 2024
0cce71b
update tests
MikeZeDev Oct 27, 2024
3be2750
Merge branch 'master' into bilibili
MikeZeDev Nov 1, 2024
124c560
decrypt pictures when needed
MikeZeDev Nov 1, 2024
1fa980c
Merge branch 'master' into bilibili
MikeZeDev Nov 7, 2024
439543d
Update BilibiliManhua.ts
MikeZeDev Nov 12, 2024
f088185
Merge branch 'master' into bilibili
MikeZeDev Nov 23, 2024
dd407f1
fix buffer type
MikeZeDev Nov 23, 2024
2902a96
Update BilibiliManhua.ts
MikeZeDev Nov 23, 2024
0989085
Merge branch 'master' into bilibili
MikeZeDev Nov 26, 2024
d1e9d0b
test for getting paid chapters
MikeZeDev Dec 1, 2024
69b2923
Fix access to content (hopefully)
MikeZeDev Dec 1, 2024
a36bce4
Merge branch 'master' into bilibili
MikeZeDev Dec 9, 2024
e3efef3
Merge branch 'master' into bilibili
MikeZeDev Dec 15, 2024
e4140bc
handle new encryption scheme
MikeZeDev Dec 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions web/src/engine/transformers/BookmarkConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const legacyWebsiteIdentifierMap = new Map([
[ 'manhuaes', 'manhuaaz' ],
[ 'manhuascan', 'kaliscan' ],
[ 'manhwaclub', 'manhwahentai' ],
[ 'neteasecomic', 'bilibilimanhua' ],
MikeZeDev marked this conversation as resolved.
Show resolved Hide resolved
[ 'nitroscans', 'nitromanga' ],
[ 'nonbiri', 'comic21' ],
[ 'oxapk', 'manjanoon' ],
Expand Down
1 change: 1 addition & 0 deletions web/src/engine/transformers/BookmarkConverter_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const legacyWebsiteIdentifierMapTestCases = [
{ sourceID: 'manhuascan', targetID: 'kaliscan' },
{ sourceID: 'manhwaclub', targetID: 'manhwahentai' },
{ sourceID: 'nitroscans', targetID: 'nitromanga' },
{ sourceID: 'neteasecomic', targetID: 'bilibilimanhua'},
{ sourceID: 'nonbiri', targetID: 'comic21' },
{ sourceID: 'oxapk', targetID: 'manjanoon' },
{ sourceID: 'ozulscans', targetID: 'kingofmanga' },
Expand Down
18 changes: 18 additions & 0 deletions web/src/engine/websites/BilibiliManhua.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import type { Chapter, Manga, Page } from '../providers/MangaPlugin';
import { DecoratableMangaScraper, type MangaPlugin } from '../providers/MangaPlugin';
import type { Priority } from '../taskpool/DeferredTask';
export default class extends DecoratableMangaScraper {
constructor();
get Icon(): any;
ValidateMangaURL(url: string): boolean;
FetchManga(provider: MangaPlugin, url: string): Promise<Manga>;
FetchMangas(provider: MangaPlugin): Promise<Manga[]>;
private GetMangasFromPage;
FetchChapters(manga: Manga): Promise<Chapter[]>;
FetchPages(chapter: Chapter): Promise<Page[]>;
private GenerateKeyPair;
FetchImage(page: Page, priority: Priority, signal: AbortSignal): Promise<Blob>;
private DecryptImage;
private GetImageSizeByQuality;
private FetchTwirp;
}
2 changes: 2 additions & 0 deletions web/src/engine/websites/BilibiliManhua.js

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions web/src/engine/websites/BilibiliManhua_e2e.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { TestFixture } from '../../../test/WebsitesFixture';

const config = {
plugin: {
id: 'bilibilimanhua',
title: '哔哩哔哩 漫画 (Bilibili Manhua)'
},
container: {
url: 'https://manga.bilibili.com/detail/mc27414',
id: '27414',
title: '猫之茗'
},
child: {
id: '378510',
title: '01 - 猫娘茉莉的糟糕穿越'
},
entry: {
index: 1,
size: 151_321,
type: 'image/jpeg'
}
};

new TestFixture(config).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 @@ -40,6 +40,7 @@ export { default as BacaManga } from './BacaManga';
export { default as Baozimh } from './Baozimh';
export { default as BarManga } from './BarManga';
export { default as Batoto } from './Batoto';
export { default as BilibiliManhua } from './BilibiliManhua';
export { default as BlogTruyenMoi } from './BlogTruyenMoi';
export { default as Bokugents } from './Bokugents';
export { default as Bomtoon } from './Bomtoon';
Expand Down Expand Up @@ -731,7 +732,6 @@ export { default as ZinMangaNet } from './ZinMangaNet';
// Legacy Websites
export { default as AnimePahe } from './legacy/AnimePahe';
export { default as ArazNovel } from './legacy/ArazNovel';
export { default as BilibiliManhua } from './legacy/BilibiliManhua';
export { default as BookLive } from './legacy/BookLive';
export { default as ComicBoost } from './legacy/ComicBoost';
export { default as ComicBrise } from './legacy/ComicBrise';
Expand Down
119 changes: 0 additions & 119 deletions web/src/engine/websites/legacy/BilibiliManhua.ts

This file was deleted.

Loading