diff --git a/src/invidious.cr b/src/invidious.cr index 6af80f87..d3300ece 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -171,16 +171,9 @@ 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. For more information see https://docs.invidious.io/installation") 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. For more information see https://docs.invidious.io/installation") - end -{% end %} - # Start jobs if CONFIG.channel_threads > 0 diff --git a/src/invidious/config.cr b/src/invidious/config.cr index 2a16a76f..50250896 100644 --- a/src/invidious/config.cr +++ b/src/invidious/config.cr @@ -271,6 +271,8 @@ class Config puts "Config: The value of 'invidious_companion_key' needs to be a size of 16 or more." exit(1) end + else + LOGGER.warn("WARNING: Invidious companion is required to view and playback videos. For more information see https://docs.invidious.io/companion-installation/") end # HMAC_key is mandatory