novel-updates: update blogspot (#1167)
This commit is contained in:
@@ -6,7 +6,7 @@ import { Plugin } from '@typings/plugin';
|
|||||||
class NovelUpdates implements Plugin.PluginBase {
|
class NovelUpdates implements Plugin.PluginBase {
|
||||||
id = 'novelupdates';
|
id = 'novelupdates';
|
||||||
name = 'Novel Updates';
|
name = 'Novel Updates';
|
||||||
version = '0.7.4';
|
version = '0.7.5';
|
||||||
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/';
|
||||||
@@ -726,6 +726,7 @@ class NovelUpdates implements Plugin.PluginBase {
|
|||||||
* - FictionRead (Outlier)
|
* - FictionRead (Outlier)
|
||||||
* - Novel World Translations (Outlier)
|
* - Novel World Translations (Outlier)
|
||||||
* - SacredText TL (Outlier)
|
* - SacredText TL (Outlier)
|
||||||
|
* - Toasteful
|
||||||
*
|
*
|
||||||
* WordPress sites:
|
* WordPress sites:
|
||||||
* - Anomlaously Creative (Outlier)
|
* - Anomlaously Creative (Outlier)
|
||||||
@@ -755,13 +756,19 @@ class NovelUpdates implements Plugin.PluginBase {
|
|||||||
if (!isWordPress && !isBlogspot) {
|
if (!isWordPress && !isBlogspot) {
|
||||||
chapterText = await this.getChapterBody(loadedCheerio, domain, url);
|
chapterText = await this.getChapterBody(loadedCheerio, domain, url);
|
||||||
} else if (isBlogspot) {
|
} else if (isBlogspot) {
|
||||||
bloatClasses = ['.button-container', '.separator'];
|
bloatClasses = [
|
||||||
|
'.button-container',
|
||||||
|
'.ChapterNav',
|
||||||
|
'.ch-bottom',
|
||||||
|
'.separator',
|
||||||
|
];
|
||||||
bloatClasses.map(tag => loadedCheerio(tag).remove());
|
bloatClasses.map(tag => loadedCheerio(tag).remove());
|
||||||
chapterTitle =
|
chapterTitle =
|
||||||
loadedCheerio('.entry-title').first().text() ||
|
loadedCheerio('.entry-title').first().text() ||
|
||||||
loadedCheerio('.post-title').first().text() ||
|
loadedCheerio('.post-title').first().text() ||
|
||||||
'Title not found';
|
'Title not found';
|
||||||
chapterContent =
|
chapterContent =
|
||||||
|
loadedCheerio('.content-post').html() ||
|
||||||
loadedCheerio('.entry-content').html() ||
|
loadedCheerio('.entry-content').html() ||
|
||||||
loadedCheerio('.post-body').html() ||
|
loadedCheerio('.post-body').html() ||
|
||||||
'Content not found';
|
'Content not found';
|
||||||
|
|||||||
Reference in New Issue
Block a user