Invidious is an alternative front-end to YouTube
Warn when `po_token`, `visitor_data` and/or `inv-sig-helper` is not configured (#5202)
syeopite5c8b4eb37902
diff --git a/src/invidious.cr b/src/invidious.crindex 12ffad33..7b76c886 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -167,9 +167,16 @@ DECRYPT_FUNCTION =if sig_helper_address = CONFIG.signature_server.presenceIV::DecryptFunction.new(sig_helper_address)else+ LOGGER.warn("WARNING: inv-sig-helper is required for video playback. For more information see https://docs.invidious.io/installation")nilend+{% for field in %w(po_token visitor_data) %}+ if !CONFIG.{{field.id}}+ LOGGER.warn("WARNING: {{field.id}} is required to view and playback videos. For more information see https://docs.invidious.io/installation")+ end+{% end %}+# Start jobsif CONFIG.channel_threads > 0