Skip to content

Commit

Permalink
update systemtranslation parser
Browse files Browse the repository at this point in the history
  • Loading branch information
gamebeaker committed Sep 4, 2024
1 parent 0bc7453 commit b10fb34
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 b10fb34

Please sign in to comment.