From e8893646f0e354c52e5e599838c037696f1e4867 Mon Sep 17 00:00:00 2001 From: kenobi Date: Wed, 5 Jul 2023 23:22:25 +0200 Subject: [PATCH] add config values --- server/configuration.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/configuration.ts b/server/configuration.ts index 1e5f848..7fddfc0 100644 --- a/server/configuration.ts +++ b/server/configuration.ts @@ -30,6 +30,7 @@ export interface Config { yavin_jellyfin_url: string yavin_jellyfin_token: string yavin_jellyfin_collection_user: string + random_movie_count: number } } export const config: Config = { @@ -69,6 +70,7 @@ export const config: Config = { yavin_jellyfin_url: process.env.YAVIN_JELLYFIN_URL ?? "", yavin_jellyfin_token: process.env.YAVIN_TOKEN ?? "", yavin_jellyfin_collection_user: process.env.YAVIN_COLLECTION_USER ?? "", - jf_user: process.env.JELLYFIN_USER ?? "" + jf_user: process.env.JELLYFIN_USER ?? "", + random_movie_count: parseInt(process.env.RANDOM_MOVIE_COUNT ?? "") ?? 5 } }