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:
@@ -11,22 +11,36 @@
|
||||
},
|
||||
{
|
||||
"id": "ltnovel",
|
||||
"sourceSite": "https://www.ltnovel.com",
|
||||
"sourceName": "Ltnovel"
|
||||
"sourceSite": "https://www.ltnovels.com",
|
||||
"sourceName": "Ltnovel",
|
||||
"options": {
|
||||
"versionIncrements": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "wuxiamtl",
|
||||
"sourceSite": "https://www.fansmtl.com",
|
||||
"sourceName": "Fans MTL"
|
||||
"sourceSite": "https://www.fansmtl.org",
|
||||
"sourceName": "Fans MTL",
|
||||
"options": {
|
||||
"versionIncrements": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fannovel",
|
||||
"sourceSite": "https://www.fannovel.com",
|
||||
"sourceName": "FanNovel"
|
||||
"sourceSite": "https://www.fannovels.org",
|
||||
"sourceName": "FanNovel",
|
||||
"options": {
|
||||
"versionIncrements": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "wuxiaspace",
|
||||
"sourceSite": "https://www.wuxiaspace.com",
|
||||
"sourceName": "Wuxia Space"
|
||||
},
|
||||
{
|
||||
"id": "wuxiav",
|
||||
"sourceSite": "https://www.wuxiav.com",
|
||||
"sourceName": "WuxiaV"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user