From 3e83ec87e0c1591ffd090225336a522d930a661c Mon Sep 17 00:00:00 2001 From: Rojikku Date: Thu, 22 Jan 2026 21:45:47 -0500 Subject: [PATCH] fix: Novelfire theoretical scrape fix --- plugins/english/novelfire.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/english/novelfire.ts b/plugins/english/novelfire.ts index d019e0f33..9fc1b32c9 100644 --- a/plugins/english/novelfire.ts +++ b/plugins/english/novelfire.ts @@ -8,7 +8,7 @@ import { defaultCover } from '@/types/constants'; class NovelFire implements Plugin.PluginBase { id = 'novelfire'; name = 'Novel Fire'; - version = '1.1.5'; + version = '1.1.6'; icon = 'src/en/novelfire/icon.png'; site = 'https://novelfire.net/'; @@ -195,10 +195,12 @@ class NovelFire implements Plugin.PluginBase { const loadedCheerio = await this.getCheerio(url, false); const chapterText = loadedCheerio('#content'); - const odds = chapterText.find(':not(p, h1, span, i, b, u, img, a, div)'); + const odds = chapterText.find( + ':not(p, h1, span, i, b, u, img, a, div, strong)', + ); for (const ele of odds.toArray()) { const tag = ele.name.toString(); - if (tag.length > 5) { + if (tag.length > 5 && ele.name.toString().substring(0, 1) == 'nf') { loadedCheerio(ele).remove(); } }