Skip to content

Commit

Permalink
refactor: rename defaultVotHost -> defaultVOTHost
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyhalight committed Jan 20, 2025
1 parent e3c2e5b commit 948c83d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/updateConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ async function rewriteConfig(data: typeof config) {
}

config.version = version;
config.defaultVotHost = VOTConfig.hostVOT;
config.defaultVOTHost = VOTConfig.hostVOT;
await rewriteConfig(config);
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion src/resources/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const schemaObj: SchemaItem[] = [
{
// vot-host string
type: "string",
default: config.defaultVotHost,
default: config.defaultVOTHost,
aliases: "vot-host",
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/types/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export type ConfigSchema = {
defaultLang: RequestLang;
defaultResLang: ResponseLang;
defaultSubsFormat: SubtitleFormat;
defaultVotHost: string;
defaultVOTHost: string;
};

0 comments on commit 948c83d

Please sign in to comment.