invidious-companion-patches/patches/0011-Add-environment-variable-for-youtube_session.frequen.patch
Fijxu 993d415f47
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m15s
remove videoplayback metrics
2025-04-08 02:42:01 -04:00

27 lines
941 B
Diff

From 2841bfba51d147c5dd8061225b13d34a81398d00 Mon Sep 17 00:00:00 2001
From: Fijxu <fijxu@nadeko.net>
Date: Wed, 26 Mar 2025 12:24:49 -0300
Subject: [PATCH 11/12] Add environment variable for youtube_session.frequency
---
src/lib/helpers/config.ts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/lib/helpers/config.ts b/src/lib/helpers/config.ts
index c840ce4..6b9170d 100644
--- a/src/lib/helpers/config.ts
+++ b/src/lib/helpers/config.ts
@@ -45,7 +45,9 @@ export const ConfigSchema = z.object({
jobs: z.object({
youtube_session: z.object({
po_token_enabled: z.boolean().default(true),
- frequency: z.string().default("*/5 * * * *"),
+ frequency: z.string().default(
+ Deno.env.get("JOBS_YOUTUBESESSION_FREQUENCY") || "*/5 * * * *",
+ ),
po_token_check: z
.boolean()
.default(
--
2.49.0