chore: enforce 16 characters for invidious_companion_key (#5220)

This commit is contained in:
Émilien (perso) 2025-03-26 15:27:59 +01:00 committed by GitHub
parent 409d12a81e
commit 23ff6135bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -267,8 +267,8 @@ class Config
elsif config.invidious_companion_key == "CHANGE_ME!!"
puts "Config: The value of 'invidious_companion_key' needs to be changed!!"
exit(1)
elsif config.invidious_companion_key.size < 16
puts "Config: The value of 'invidious_companion_key' needs to be a size of 16 or more."
elsif config.invidious_companion_key.size != 16
puts "Config: The value of 'invidious_companion_key' needs to be a size of 16 characters."
exit(1)
end
elsif config.signature_server