diff --git a/scripts/updateConfig.ts b/scripts/updateConfig.ts index ea4ad0b..45cd926 100644 --- a/scripts/updateConfig.ts +++ b/scripts/updateConfig.ts @@ -35,5 +35,5 @@ async function rewriteConfig(data: typeof config) { } config.version = version; -config.defaultVotHost = VOTConfig.hostVOT; +config.defaultVOTHost = VOTConfig.hostVOT; await rewriteConfig(config); diff --git a/src/config.ts b/src/config.ts index 7511698..c795918 100644 --- a/src/config.ts +++ b/src/config.ts @@ -7,6 +7,6 @@ export default { defaultLang: "en", defaultResLang: "ru", defaultSubsFormat: "srt", - defaultVotHost: "vot.toil.cc/v1", + defaultVOTHost: "vot.toil.cc/v1", version: "2.0.0", } as ConfigSchema; diff --git a/src/resources/schema.ts b/src/resources/schema.ts index be3ac00..32cbef5 100644 --- a/src/resources/schema.ts +++ b/src/resources/schema.ts @@ -50,7 +50,7 @@ export const schemaObj: SchemaItem[] = [ { // vot-host string type: "string", - default: config.defaultVotHost, + default: config.defaultVOTHost, aliases: "vot-host", }, { diff --git a/src/types/config.ts b/src/types/config.ts index db682bd..9f24aa2 100644 --- a/src/types/config.ts +++ b/src/types/config.ts @@ -6,5 +6,5 @@ export type ConfigSchema = { defaultLang: RequestLang; defaultResLang: ResponseLang; defaultSubsFormat: SubtitleFormat; - defaultVotHost: string; + defaultVOTHost: string; };