From 2cc204a0457665f8e334970d7e54b1843a667ab6 Mon Sep 17 00:00:00 2001 From: Emilien <4016501+unixfox@users.noreply.github.com> Date: Fri, 1 Nov 2024 21:30:58 +0100 Subject: [PATCH] throw error if inv_sig_helper and invidious_companion used same time --- src/invidious.cr | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/invidious.cr b/src/invidious.cr index b422dcbb..2fd9cdd8 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -161,6 +161,12 @@ Invidious::Database.check_integrity(CONFIG) {% puts "\nDone checking player dependencies, now compiling Invidious...\n" %} {% 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 DECRYPT_FUNCTION =