From 3bcd931a482a721dfe5cabcb6502fba3970d99a2 Mon Sep 17 00:00:00 2001 From: Batorian <53831711+Batorian@users.noreply.github.com> Date: Tue, 27 Aug 2024 16:09:49 +0200 Subject: [PATCH] novel-updates: update blogspot (#1167) --- src/plugins/english/novelupdates.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/plugins/english/novelupdates.ts b/src/plugins/english/novelupdates.ts index a610621..d7018f7 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.7.4'; + version = '0.7.5'; icon = 'src/en/novelupdates/icon.png'; customCSS = 'src/en/novelupdates/customCSS.css'; site = 'https://www.novelupdates.com/'; @@ -726,6 +726,7 @@ class NovelUpdates implements Plugin.PluginBase { * - FictionRead (Outlier) * - Novel World Translations (Outlier) * - SacredText TL (Outlier) + * - Toasteful * * WordPress sites: * - Anomlaously Creative (Outlier) @@ -755,13 +756,19 @@ class NovelUpdates implements Plugin.PluginBase { if (!isWordPress && !isBlogspot) { chapterText = await this.getChapterBody(loadedCheerio, domain, url); } else if (isBlogspot) { - bloatClasses = ['.button-container', '.separator']; + bloatClasses = [ + '.button-container', + '.ChapterNav', + '.ch-bottom', + '.separator', + ]; bloatClasses.map(tag => loadedCheerio(tag).remove()); chapterTitle = loadedCheerio('.entry-title').first().text() || loadedCheerio('.post-title').first().text() || 'Title not found'; chapterContent = + loadedCheerio('.content-post').html() || loadedCheerio('.entry-content').html() || loadedCheerio('.post-body').html() || 'Content not found';