add config values
All checks were successful
Compile the repository / compile (pull_request) Successful in 12s
Run unit tests / test (pull_request) Successful in 10s

This commit is contained in:
kenobi 2023-07-05 23:22:25 +02:00
parent e61b3a7b16
commit e8893646f0

View File

@ -30,6 +30,7 @@ export interface Config {
yavin_jellyfin_url: string yavin_jellyfin_url: string
yavin_jellyfin_token: string yavin_jellyfin_token: string
yavin_jellyfin_collection_user: string yavin_jellyfin_collection_user: string
random_movie_count: number
} }
} }
export const config: Config = { export const config: Config = {
@ -69,6 +70,7 @@ export const config: Config = {
yavin_jellyfin_url: process.env.YAVIN_JELLYFIN_URL ?? "", yavin_jellyfin_url: process.env.YAVIN_JELLYFIN_URL ?? "",
yavin_jellyfin_token: process.env.YAVIN_TOKEN ?? "", yavin_jellyfin_token: process.env.YAVIN_TOKEN ?? "",
yavin_jellyfin_collection_user: process.env.YAVIN_COLLECTION_USER ?? "", 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
} }
} }