From e24fdfcab4327c123bfbec050964d08dc447026b Mon Sep 17 00:00:00 2001 From: syeopite Date: Mon, 10 Mar 2025 15:18:27 -0700 Subject: [PATCH] Warn when required configs for playback is missing --- src/invidious.cr | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/invidious.cr b/src/invidious.cr index 12ffad33..2cd15652 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -167,9 +167,16 @@ DECRYPT_FUNCTION = if sig_helper_address = CONFIG.signature_server.presence IV::DecryptFunction.new(sig_helper_address) else + LOGGER.warn("WARNING: inv-sig-helper is required for video playback") nil end +{% for field in %w(po_token visitor_data) %} + if !CONFIG.{{field.id}} + LOGGER.warn("WARNING: {{field.id}} is required to view and playback videos") + end +{% end %} + # Start jobs if CONFIG.channel_threads > 0