We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71408fb commit b363014Copy full SHA for b363014
1 file changed
plugin/js/parsers/Novel543Parser.js
@@ -8,7 +8,10 @@ class Novel543Parser extends Parser {
8
}
9
10
async getChapterUrls(dom) {
11
- let tocUrl = dom.baseURI + "dir";
+ let tocUrl = dom.baseURI;
12
+ tocUrl += tocUrl.endsWith("/")
13
+ ? "dir"
14
+ : "/dir";
15
let nextDom = (await HttpClient.wrapFetch(tocUrl)).responseXML;
16
let menu = nextDom.querySelector("div.chaplist ul:nth-of-type(2)");
17
return util.hyperlinksToChapterList(menu);
0 commit comments