Skip to content

Commit

Permalink
Fix: Incorrect volumes when build ToC for Patreon
Browse files Browse the repository at this point in the history
See: #1120
  • Loading branch information
dteviot committed Dec 7, 2023
1 parent b24736c commit d40c2e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin/js/parsers/GraverobbertlParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TemplateParser extends Parser{
async getChapterUrls(dom) {
let links = [...dom.querySelectorAll("div.post-entry ul a")]
.filter(a => a.host !== "graverobbertl.wordpress.com")
return links.map(util.hyperLinkToChapter);
return links.map(a => util.hyperLinkToChapter(a));
}

findContent(dom) {
Expand Down
2 changes: 1 addition & 1 deletion plugin/js/parsers/PatreonParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class PatreonParser extends Parser{
}

return [...dom.querySelectorAll("span[data-tag='post-title'] a")]
.map(util.hyperLinkToChapter).reverse();
.map(a => util.hyperLinkToChapter(a)).reverse();
}

findCampaignId(dom) {
Expand Down

0 comments on commit d40c2e1

Please sign in to comment.