Improvement: Novel Updates: Updated Daoist Quest (#1800)
* update `daoist` and version change * `daoist` update * revert test version
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user