Fix plugins (#914)

* fix: novel hall search

* bump novel hall version

* fix: storyseeding

* bumps StorySeedling version

* fix: ltnovel, fans mtl, fannovel domain

* fix: types

* added wuxiaV
This commit is contained in:
nyagami
2024-04-28 16:08:03 +07:00
committed by GitHub
parent 8bb7ea194a
commit d96843da3b
6 changed files with 46 additions and 25 deletions
+7 -1
View File
@@ -6,11 +6,16 @@ import { load as parseHTML } from 'cheerio';
import dayjs from 'dayjs';
import qs from 'qs';
interface ReadwnOptions {
versionIncrements?: number;
}
export interface ReadwnMetadata {
id: string;
sourceSite: string;
sourceName: string;
filters?: any;
options?: ReadwnOptions;
}
class ReadwnPlugin implements Plugin.PluginBase {
@@ -26,7 +31,8 @@ class ReadwnPlugin implements Plugin.PluginBase {
this.name = metadata.sourceName;
this.icon = `multisrc/readwn/${metadata.id.toLowerCase()}/icon.png`;
this.site = metadata.sourceSite;
this.version = '1.0.1';
const versionIncrements = metadata.options?.versionIncrements || 0;
this.version = `1.0.${1 + versionIncrements}`;
this.filters = metadata.filters;
}