From a77ed0bb9fbefee9e8a9ec164391160dbccfc317 Mon Sep 17 00:00:00 2001 From: popmsx Date: Fri, 17 Jan 2025 09:33:39 +0900 Subject: [PATCH] fix syosetu.com novel body (#1428) --- src/plugins/japanese/Syosetu.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/japanese/Syosetu.ts b/src/plugins/japanese/Syosetu.ts index 7d8f743..3423377 100644 --- a/src/plugins/japanese/Syosetu.ts +++ b/src/plugins/japanese/Syosetu.ts @@ -223,7 +223,9 @@ class Syosetu implements Plugin.PluginBase { // Get the chapter content const chapterContent = - cheerioQuery('.p-novel__body .js-novel-text').html() || ''; + cheerioQuery( + '.p-novel__body .p-novel__text:not([class*="p-novel__text--"])', + ).html() || ''; // Combine title and content with proper HTML structure return `

${chapterTitle}

${chapterContent}`;