fix: Update Novel Hall (#1860)

This commit is contained in:
Justin COLLON
2025-10-28 03:59:02 +01:00
committed by GitHub
parent 803ef7cb70
commit 7aefeb8fa1
+2 -2
View File
@@ -6,7 +6,7 @@ import { defaultCover } from '@libs/defaultCover';
class NovelHall implements Plugin.PluginBase { class NovelHall implements Plugin.PluginBase {
id = 'novelhall'; id = 'novelhall';
name = 'Novel Hall'; name = 'Novel Hall';
version = '1.0.2'; version = '1.0.3';
icon = 'src/en/novelhall/icon.png'; icon = 'src/en/novelhall/icon.png';
site = 'https://novelhall.com/'; site = 'https://novelhall.com/';
@@ -85,7 +85,7 @@ class NovelHall implements Plugin.PluginBase {
async parseChapter(chapterPath: string): Promise<string> { async parseChapter(chapterPath: string): Promise<string> {
const body = await fetchApi(this.site + chapterPath).then(r => r.text()); const body = await fetchApi(this.site + chapterPath).then(r => r.text());
const loadedCheerio = parseHTML(body); const loadedCheerio = parseHTML(body);
const chapterText = loadedCheerio('.content').html() || ''; const chapterText = loadedCheerio('#htmlContent').html() || '';
return chapterText; return chapterText;
} }