lightnovelwp & novelDeGlace update (#851)

* lightnovelwp:
 - template accepte version increments
 - daotranslate update url

* novel de glace: - fix date parsing failing for single digit day value
This commit is contained in:
Justin COLLON
2024-03-23 04:44:21 +01:00
committed by GitHub
parent 6f0e679ba4
commit a45b859182
3 changed files with 14 additions and 10 deletions
+3 -1
View File
@@ -8,6 +8,7 @@ import { Filters } from "@libs/filterInputs";
interface LightNovelWPOptions {
reverseChapters?: boolean;
lang?: string;
versionIncrements?: number;
}
export interface LightNovelWPMetadata {
@@ -32,7 +33,8 @@ class LightNovelWPPlugin implements Plugin.PluginBase {
this.name = metadata.sourceName;
this.icon = `multisrc/lightnovelwp/${metadata.id}.png`;
this.site = metadata.sourceSite;
this.version = "1.0.4";
const versionIncrements = metadata.options?.versionIncrements || 0;
this.version = `1.0.${4 + versionIncrements}`;
this.options = metadata.options;
this.filters = metadata.filters satisfies Filters;
}