fix: Small Fixes to Novel Updates (#1987)

* Update couple of sites

* fix Dreamy Translations

* fix

* fix

* fix

* fix

* revert version

* fix

* fix

* revert version
This commit is contained in:
Batorian
2026-01-16 21:18:10 +01:00
committed by GitHub
parent 06a1ebb580
commit f255fc9750
+24 -7
View File
@@ -6,7 +6,7 @@ import { Plugin } from '@/types/plugin';
class NovelUpdates implements Plugin.PluginBase { class NovelUpdates implements Plugin.PluginBase {
id = 'novelupdates'; id = 'novelupdates';
name = 'Novel Updates'; name = 'Novel Updates';
version = '0.9.5'; version = '0.9.6';
icon = 'src/en/novelupdates/icon.png'; icon = 'src/en/novelupdates/icon.png';
customCSS = 'src/en/novelupdates/customCSS.css'; customCSS = 'src/en/novelupdates/customCSS.css';
site = 'https://www.novelupdates.com/'; site = 'https://www.novelupdates.com/';
@@ -311,10 +311,15 @@ class NovelUpdates implements Plugin.PluginBase {
chapterContent = loadedCheerio('.chapter__content').html()!; chapterContent = loadedCheerio('.chapter__content').html()!;
break; break;
} }
// Last edited in 0.9.5 by Batorian - 26/12/2025 // Last edited in 0.9.6 by Batorian - 16/01/2026
case 'dreamy-translations': { case 'dreamy-translations': {
chapterTitle = loadedCheerio('h1 > span').first().text(); chapterTitle = loadedCheerio('h1 > span').first().text();
chapterContent = loadedCheerio('.chapter-content').html()!;
const content = loadedCheerio('.chapter-content > div').first();
content.children('em').wrap('<p></p>');
chapterContent = content.html()!;
break;
} }
// Last edited in 0.9.0 by Batorian - 19/03/2025 // Last edited in 0.9.0 by Batorian - 19/03/2025
case 'fictionread': { case 'fictionread': {
@@ -379,10 +384,10 @@ class NovelUpdates implements Plugin.PluginBase {
} }
break; break;
} }
// Last edited in 0.9.5 by Batorian - 26/12/2025 // Last edited in 0.9.6 by Batorian - 16/01/2026
case 'greenztl': { case 'greenz': {
const chapterSlug = chapterPath.split('/').pop(); const chapterSlug = chapterPath.split('/').pop();
const apiUrl = `https://greenztl.com/api/chapters/slug/${chapterSlug}`; const apiUrl = `https://greenz.com/api/chapters/slug/${chapterSlug}`;
try { try {
const response = await fetchApi(apiUrl); const response = await fetchApi(apiUrl);
@@ -459,6 +464,15 @@ class NovelUpdates implements Plugin.PluginBase {
} }
break; break;
} }
// Last edited in 0.9.6 by Batorian - 16/01/2026
case 'leafstudio': {
chapterTitle = loadedCheerio('.title').first().text();
chapterContent = loadedCheerio('.chapter_content')
.map((_, el) => loadedCheerio(el).prop('outerHTML'))
.get()
.join('');
break;
}
// Last edited in 0.9.2 by Batorian - 08/09/2025 // Last edited in 0.9.2 by Batorian - 08/09/2025
case 'machineslicedbread': { case 'machineslicedbread': {
const urlPath = chapterPath.split('/').filter(Boolean); const urlPath = chapterPath.split('/').filter(Boolean);
@@ -925,11 +939,13 @@ class NovelUpdates implements Plugin.PluginBase {
].some(Boolean); ].some(Boolean);
// Handle outlier sites // Handle outlier sites
// Last edited in 0.9.6 - 16/01/2026
const outliers = [ const outliers = [
'asuratls', 'asuratls',
'fictionread', 'fictionread',
'hiraethtranslation', 'hiraethtranslation',
'infinitenoveltranslations', 'infinitenoveltranslations',
'leafstudio',
'machineslicedbread', 'machineslicedbread',
'mirilu', 'mirilu',
'novelworldtranslations', 'novelworldtranslations',
@@ -943,7 +959,7 @@ class NovelUpdates implements Plugin.PluginBase {
isBlogspot = false; isBlogspot = false;
} }
// Last edited in 0.9.5 - 26/12/2025 // Last edited in 0.9.6 - 16/01/2026
/** /**
* Blogspot sites: * Blogspot sites:
* - ¼-Assed * - ¼-Assed
@@ -963,6 +979,7 @@ class NovelUpdates implements Plugin.PluginBase {
* - Infinite Novel Translations (Outlier) * - Infinite Novel Translations (Outlier)
* - ippotranslations * - ippotranslations
* - JATranslations * - JATranslations
* - Leaf Studio (Outlier)
* - Light Novels Translations * - Light Novels Translations
* - Machine Sliced Bread (Outlier) * - Machine Sliced Bread (Outlier)
* - Mirilu - Novel Reader Attempts Translating (Outlier) * - Mirilu - Novel Reader Attempts Translating (Outlier)