Skip to content

Commit

Permalink
requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev committed Dec 29, 2024
1 parent 4c8b7eb commit a3f77a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions web/src/engine/websites/ACGN.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Tags } from '../Tags';
import { Tags } from '../Tags';
import icon from './ACGN.webp';
import { DecoratableMangaScraper, type Manga, type MangaPlugin } from '../providers/MangaPlugin';
import * as Common from './decorators/Common';
Expand All @@ -7,14 +7,14 @@ function PageExtractor(element: HTMLDivElement) {
return element.getAttribute('_src');
}

@Common.MangaCSS(/^{origin}\/manhua-[^.]+\.htm$/, 'div#breadcrumb h1')
@Common.MangaCSS(/^{origin}\/manhua-[^/]+\.htm$/, 'div#breadcrumb h1')
@Common.ChaptersSinglePageCSS('div#comic_chapter ul li a')
@Common.PagesSinglePageCSS('div#pic_list div.pic', PageExtractor)
@Common.ImageAjax()
export default class extends DecoratableMangaScraper {

public constructor() {
super('acgn', 'Animation Comic Game Novel', 'https://comic.acgn.cc', Tags.Media.Manhwa, Tags.Media.Manhua, Tags.Language.Chinese, Tags.Source.Aggregator);
super('acgn', '動漫戲說(ACGN.cc) - 免費線上漫畫,遊戲', 'https://comic.acgn.cc', Tags.Media.Manhwa, Tags.Media.Manhua, Tags.Language.Chinese, Tags.Source.Aggregator);
}

public override get Icon() {
Expand All @@ -23,8 +23,8 @@ export default class extends DecoratableMangaScraper {

public override async FetchMangas(provider: MangaPlugin): Promise<Manga[]> {
const mangasList: Manga[] = [];
for (let i = 1; i <= 35; i++) {
const mangas = await Common.FetchMangasMultiPageCSS.call(this, provider, `/cate-${i}.htm?page={page}`, 'ul#display div.list_r a');
for (let category = 1; category <= 34; category++) {
const mangas = await Common.FetchMangasMultiPageCSS.call(this, provider, `/cate-${category}.htm?page={page}`, 'ul#display div.list_r a');
mangasList.push(...mangas);
}
return mangasList.distinct();
Expand Down
2 changes: 1 addition & 1 deletion web/src/engine/websites/ACGN_e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
new TestFixture({
plugin: {
id: 'acgn',
title: 'Animation Comic Game Novel'
title: '動漫戲說(ACGN.cc) - 免費線上漫畫,遊戲',
},
container: {
url: 'https://comic.acgn.cc/manhua-haiziwang.htm',
Expand Down

0 comments on commit a3f77a4

Please sign in to comment.