We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da98ca7 commit c4f0201Copy full SHA for c4f0201
plugin/js/parsers/NovelbinParser.js
@@ -21,6 +21,15 @@ class NovelbinParser extends Parser{
21
return dom.querySelector("h3.title");
22
}
23
24
+ extractAuthor(dom) {
25
+ let items = [...dom.querySelectorAll("ul.info-meta li")]
26
+ .filter(u => u.querySelector("h3")?.textContent === "Author:")
27
+ .map(u => u.querySelector("a")?.textContent)
28
+ return 0 < items.length
29
+ ? items[0]
30
+ : super.extractAuthor(dom);
31
+ }
32
+
33
findChapterTitle(dom) {
34
return dom.querySelector("h2");
35
0 commit comments