Skip to content

Commit a63fca8

Browse files
committed
throw error if inv_sig_helper and invidious_companion used same time
1 parent c3d328b commit a63fca8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/invidious.cr

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,12 @@ Invidious::Database.check_integrity(CONFIG)
158158
{% puts "\nDone checking player dependencies, now compiling Invidious...\n" %}
159159
{% end %}
160160

161+
# invidious_companion and signature_server can't work together
162+
if CONFIG.signature_server && CONFIG.invidious_companion
163+
puts "You can not run inv_sig_helper and invidious_companion at the same time."
164+
exit(1)
165+
end
166+
161167
# Misc
162168

163169
DECRYPT_FUNCTION =

0 commit comments

Comments
 (0)