From 3d2f1bb6cb573f3101db1d0dbf73ef434c0ed2c7 Mon Sep 17 00:00:00 2001 From: Batorian Date: Tue, 9 Sep 2025 19:13:07 +0200 Subject: [PATCH 1/3] update `daoist` and version change --- package.json | 2 +- src/plugins/english/novelupdates.ts | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 8138d79c0..89751a370 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lnreader-plugins", - "version": "3.0.0", + "version": "3.1.0", "description": "Plugins repo for LNReader", "main": "index.js", "type": "module", diff --git a/src/plugins/english/novelupdates.ts b/src/plugins/english/novelupdates.ts index 318a50f94..42363c5b1 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,20 @@ 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(); + + // 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; } From fd62035dda1c1cef39948ce58cc3cacdc7923426 Mon Sep 17 00:00:00 2001 From: Batorian Date: Tue, 9 Sep 2025 19:16:39 +0200 Subject: [PATCH 2/3] `daoist` update --- src/plugins/english/novelupdates.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/english/novelupdates.ts b/src/plugins/english/novelupdates.ts index 42363c5b1..205e7a39f 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.3'; + version = '0.9.4'; icon = 'src/en/novelupdates/icon.png'; customCSS = 'src/en/novelupdates/customCSS.css'; site = 'https://www.novelupdates.com/'; @@ -313,6 +313,9 @@ class NovelUpdates implements Plugin.PluginBase { 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); From a177d1f61af85829e44bd1144a62edd152cc7916 Mon Sep 17 00:00:00 2001 From: Batorian Date: Tue, 9 Sep 2025 19:20:55 +0200 Subject: [PATCH 3/3] revert test version --- package.json | 2 +- src/plugins/english/novelupdates.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 89751a370..8138d79c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lnreader-plugins", - "version": "3.1.0", + "version": "3.0.0", "description": "Plugins repo for LNReader", "main": "index.js", "type": "module", diff --git a/src/plugins/english/novelupdates.ts b/src/plugins/english/novelupdates.ts index 205e7a39f..22e9a9b44 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.4'; + version = '0.9.3'; icon = 'src/en/novelupdates/icon.png'; customCSS = 'src/en/novelupdates/customCSS.css'; site = 'https://www.novelupdates.com/';