Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions src/plugins/english/novelupdates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/';
Expand Down Expand Up @@ -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;
}
Expand Down