Skip to content

Commit

Permalink
throw error if inv_sig_helper and invidious_companion used same time
Browse files Browse the repository at this point in the history
  • Loading branch information
unixfox committed Nov 1, 2024
1 parent c3d328b commit a63fca8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/invidious.cr
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,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 =
Expand Down

0 comments on commit a63fca8

Please sign in to comment.