Warn when required configs for playback is missing

This commit is contained in:
syeopite 2025-03-10 15:18:27 -07:00
parent adcdb8cb92
commit e24fdfcab4
No known key found for this signature in database
GPG Key ID: A73C186DA3955A1A

View File

@ -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