Skip to content

Commit

Permalink
MangaParkPublisher : fix chapter title
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeZeDev committed Nov 22, 2024
1 parent 52dabc8 commit 9885858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions web/src/engine/websites/MangaParkPublisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
};
}

Expand Down
2 changes: 1 addition & 1 deletion web/src/engine/websites/MangaParkPublisher_e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const config = {
},
child: {
id: '606536',
title: '1 - 第1話①'
title: '第1話①'
},
entry: {
index: 0,
Expand Down

0 comments on commit 9885858

Please sign in to comment.