Skip to content

Commit

Permalink
Merge pull request #1461 from gamebeaker/update-systemtranslation
Browse files Browse the repository at this point in the history
update systemtranslation parser
  • Loading branch information
gamebeaker authored Sep 4, 2024
2 parents 0bc7453 + b10fb34 commit 566455f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions plugin/js/parsers/SystemTranslationParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ class SystemTranslationParser extends WordpressBaseParser{
}

async getChapterUrls(dom) {
return [...dom.querySelectorAll("ul.wplp_listposts li.parent:not(.clone) div.top a")]
.map(a => util.hyperLinkToChapter(a))
.reverse();
let menu = dom.querySelector("div.eplisterfull ul");
return util.hyperlinksToChapterList(menu).reverse();
}

findCoverImageUrl(dom) {
return util.getFirstImgSrc(dom, "div.thumb");
}

removeUnwantedElementsFromContentElement(element) {
Expand Down

0 comments on commit 566455f

Please sign in to comment.