mirror of
https://github.com/iv-org/invidious.git
synced 2025-03-13 09:26:35 -04:00
Warn when po_token
, visitor_data
and/or inv-sig-helper
is not configured (#5202)
* Warn when required configs for playback is missing * Add link to documentation in warnings * Direct users to /installation instead
This commit is contained in:
parent
adcdb8cb92
commit
5c8b4eb379
@ -167,9 +167,16 @@ DECRYPT_FUNCTION =
|
|||||||
if sig_helper_address = CONFIG.signature_server.presence
|
if sig_helper_address = CONFIG.signature_server.presence
|
||||||
IV::DecryptFunction.new(sig_helper_address)
|
IV::DecryptFunction.new(sig_helper_address)
|
||||||
else
|
else
|
||||||
|
LOGGER.warn("WARNING: inv-sig-helper is required for video playback. For more information see https://docs.invidious.io/installation")
|
||||||
nil
|
nil
|
||||||
end
|
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
|
# Start jobs
|
||||||
|
|
||||||
if CONFIG.channel_threads > 0
|
if CONFIG.channel_threads > 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user