From 66da4aa1d3e2aca8dce85865675e575443f244b6 Mon Sep 17 00:00:00 2001 From: lemonatez <32316341+lemonatez@users.noreply.github.com> Date: Tue, 14 Apr 2026 13:04:19 +0700 Subject: [PATCH] Update KakyomuParser to handle new TOC --- plugin/js/parsers/KakuyomuParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/js/parsers/KakuyomuParser.js b/plugin/js/parsers/KakuyomuParser.js index 1856e19c5..50927b751 100644 --- a/plugin/js/parsers/KakuyomuParser.js +++ b/plugin/js/parsers/KakuyomuParser.js @@ -17,7 +17,7 @@ class KakuyomuParser extends Parser { let json = JSON.parse(script).props.pageProps.__APOLLO_STATE__; let work = json["Work:" + this.extractWorkId(dom)]; let chapters = []; - for (let tocc of work.tableOfContents) { + for (let tocc of work.tableOfContentsV2) { this.buildSubToc(chapters, json[tocc.__ref], json, dom.baseURI); } return chapters;