From eaabdeb305aacb4b50321691f756ab4c8f0eedf9 Mon Sep 17 00:00:00 2001 From: Batorian <53831711+Batorian@users.noreply.github.com> Date: Sat, 13 Sep 2025 03:54:48 +0200 Subject: [PATCH] Improvement: Novel Updates: Updated Daoist Quest (#1800) * update `daoist` and version change * `daoist` update * revert test version --- src/plugins/english/novelupdates.ts | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/plugins/english/novelupdates.ts b/src/plugins/english/novelupdates.ts index 318a50f..22e9a9b 100644 --- a/src/plugins/english/novelupdates.ts +++ b/src/plugins/english/novelupdates.ts @@ -6,7 +6,7 @@ import { Plugin } from '@typings/plugin'; class NovelUpdates implements Plugin.PluginBase { id = 'novelupdates'; name = 'Novel Updates'; - version = '0.9.2'; + version = '0.9.3'; icon = 'src/en/novelupdates/icon.png'; customCSS = 'src/en/novelupdates/customCSS.css'; site = 'https://www.novelupdates.com/'; @@ -309,9 +309,23 @@ class NovelUpdates implements Plugin.PluginBase { throw new Error(`Failed to parse Canon Story chapter: ${error}`); } } - // Last edited in 0.9.0 by Batorian - 19/03/2025 + // Last edited in 0.9.3 by Batorian - 09/09/2025 case 'daoist': { chapterTitle = loadedCheerio('.chapter__title').first().text(); + + // Remove locked content indicators + loadedCheerio('span.patreon-lock-icon').remove(); + + // Handle lazy-loaded images + loadedCheerio('img[data-src]').each((_, el) => { + const $el = loadedCheerio(el); + const dataSrc = $el.attr('data-src'); + if (dataSrc) { + $el.attr('src', dataSrc); + $el.removeAttr('data-src'); + } + }); + chapterContent = loadedCheerio('.chapter__content').html()!; break; }