Skip to content

Commit

Permalink
Fix: no description for https://fenrirtranslations.com
Browse files Browse the repository at this point in the history
See: #1622
  • Loading branch information
dteviot committed Jan 6, 2025
1 parent 22e3232 commit 812739e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugin/js/parsers/MadaraParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ class MadaraParser extends WordpressBaseParser{
}

getInformationEpubItemChildNodes(dom) {
return [...dom.querySelectorAll("div.summary__content")];
let nodes = [...dom.querySelectorAll("div.summary__content")];
if (nodes.length === 0) {
nodes = [...dom.querySelectorAll("div.manga-summary p")]
}
return nodes;
}

cleanInformationNode(node) {
Expand Down

0 comments on commit 812739e

Please sign in to comment.