throw error if inv_sig_helper and invidious_companion used same time

This commit is contained in:
Emilien 2024-11-01 21:30:58 +01:00
parent c612423a4d
commit 2cc204a045

View File

@ -161,6 +161,12 @@ Invidious::Database.check_integrity(CONFIG)
{% puts "\nDone checking player dependencies, now compiling Invidious...\n" %} {% puts "\nDone checking player dependencies, now compiling Invidious...\n" %}
{% end %} {% end %}
# invidious_companion and signature_server can't work together
if CONFIG.signature_server && CONFIG.invidious_companion
puts "You can not run inv_sig_helper and invidious_companion at the same time."
exit(1)
end
# Misc # Misc
DECRYPT_FUNCTION = DECRYPT_FUNCTION =