From 9885858f9955f18b477abbe62179ee897ec3421b Mon Sep 17 00:00:00 2001 From: MikeZeDev Date: Fri, 22 Nov 2024 19:21:39 +0100 Subject: [PATCH] MangaParkPublisher : fix chapter title --- web/src/engine/websites/MangaParkPublisher.ts | 4 +--- web/src/engine/websites/MangaParkPublisher_e2e.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/web/src/engine/websites/MangaParkPublisher.ts b/web/src/engine/websites/MangaParkPublisher.ts index 9a99b7ef63..d8143ae6a6 100644 --- a/web/src/engine/websites/MangaParkPublisher.ts +++ b/web/src/engine/websites/MangaParkPublisher.ts @@ -22,11 +22,9 @@ function MangaExtractor(anchor: HTMLAnchorElement) { }; } function ChapterExtractor(element: HTMLElement) { - const num = element.querySelector('div.chapterNumber span').textContent.trim(); - const title = element.querySelector('div.chapterNumber p.chapterTitle').textContent.trim(); return { id: element.dataset.chapterId, - title: (num + ' - ' + title).trim(), + title: element.querySelector('.chapterTitle').textContent.trim(), }; } diff --git a/web/src/engine/websites/MangaParkPublisher_e2e.ts b/web/src/engine/websites/MangaParkPublisher_e2e.ts index 3bae183184..5699f33393 100644 --- a/web/src/engine/websites/MangaParkPublisher_e2e.ts +++ b/web/src/engine/websites/MangaParkPublisher_e2e.ts @@ -12,7 +12,7 @@ const config = { }, child: { id: '606536', - title: '1 - 第1話①' + title: '第1話①' }, entry: { index: 0,