From 2a1cbf001218c4169e0e3c0f00cfdf62f759f634 Mon Sep 17 00:00:00 2001 From: praschke <91733887+praschke@users.noreply.github.com> Date: Tue, 26 Sep 2023 11:35:25 +0000 Subject: [PATCH 1/2] fix Alphapolis parser --- plugin/js/parsers/AlphapolisParser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/js/parsers/AlphapolisParser.js b/plugin/js/parsers/AlphapolisParser.js index e19b5f24..6b980c53 100644 --- a/plugin/js/parsers/AlphapolisParser.js +++ b/plugin/js/parsers/AlphapolisParser.js @@ -9,10 +9,10 @@ class AlphapolisParser extends Parser{ return util.hyperlinksToChapterList(menu); } findContent(dom) { - return dom.querySelector("div#novelBoby"); + return dom.querySelector("div#novelBody"); } extractTitleImpl(dom) { - return dom.querySelector("h2.title"); + return dom.querySelector("div.content-main .title"); } extractAuthor(dom) { let authorLink = dom.querySelector("div.author a"); From 3e5b83a8c44d68ca6b0ef2f26c78561189beb157 Mon Sep 17 00:00:00 2001 From: praschke Date: Wed, 27 Sep 2023 19:23:21 +0100 Subject: [PATCH 2/2] add praschke to contributors --- package.json | 3 ++- readme.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a2622378..c2ceee79 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,8 @@ { "name": "Yoanhg421"}, { "name": "xRahul"}, { "name": "Oleksii Taranenko"}, - { "name": "Naheulf"} + { "name": "Naheulf"}, + { "name": "praschke"} ], "license": "GPL-3.0-only", "bugs": { diff --git a/readme.md b/readme.md index 64564df5..56633906 100644 --- a/readme.md +++ b/readme.md @@ -53,6 +53,7 @@ Credits * xRahul * Oleksii Taranenko * Naheulf +* praschke ## How to use with Baka-Tsuki: * Browse to a Baka-Tsuki web page that has the full text of a story.