invidious-companion-patches/patches/0012-Add-environment-variable-for-youtube_session.frequen.patch
Fijxu a774a714fa
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m14s
update patches and invidious-companion
2025-03-27 21:28:16 -03:00

27 lines
934 B
Diff

From db6ff1b23bc50dba40611277e26e797da12b9685 Mon Sep 17 00:00:00 2001
From: Fijxu <fijxu@nadeko.net>
Date: Wed, 26 Mar 2025 12:24:49 -0300
Subject: [PATCH 12/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 50f3f8b..8cf34fd 100644
--- a/src/lib/helpers/config.ts
+++ b/src/lib/helpers/config.ts
@@ -51,7 +51,9 @@ 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