From 8d3f7f2ab0e3999be182fde2efc6855e1f8167f9 Mon Sep 17 00:00:00 2001 From: Simon Popugaev Date: Sun, 26 Apr 2026 17:29:21 +0300 Subject: [PATCH] fix novelhi parsing --- plugin/js/parsers/NovelhiParser.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugin/js/parsers/NovelhiParser.js b/plugin/js/parsers/NovelhiParser.js index e38b27c82..49a2e7d56 100644 --- a/plugin/js/parsers/NovelhiParser.js +++ b/plugin/js/parsers/NovelhiParser.js @@ -8,17 +8,16 @@ class NovelhiParser extends Parser { } async getChapterUrls(dom) { - let tocUrl = dom.querySelector("div.bookChapter a.fr"); + let tocUrl = dom.querySelector("div.bookChapter a.fr").href; let tocDom = (await HttpClient.wrapFetch(tocUrl)).responseXML; return [...tocDom.querySelectorAll("div.dirList a")] .map(a => NovelhiParser.LinkToChapter(a, dom.baseURI)); } static LinkToChapter(link, baseURI) { - let onclick = link.getAttribute("onClick").split("'"); return { - sourceUrl: baseURI + "/" + onclick[1], - title: link.querySelector("span").textContent + sourceUrl: link.href, + title: link.querySelector("span").textContent }; }