Invidious is an alternative front-end to YouTube
Merge pull request #2845 from SamantazFox/more-db-improvements
Samantaz Foxd546f1870eee
diff --cc src/invidious.crindex 8ba62503,d3ad18bd..b09f31c2--- a/src/invidious.cr+++ b/src/invidious.cr@@@ -112,35 -112,8 +112,20 @@@ OUTPUT = CONFIG.output.upcase == "STDOULOGGER = Invidious::LogHandler.new(OUTPUT, CONFIG.log_level)# Check table integrity- if CONFIG.check_tables- Invidious::Database.check_enum(PG_DB, "privacy", PlaylistPrivacy)-- Invidious::Database.check_table(PG_DB, "channels", InvidiousChannel)- Invidious::Database.check_table(PG_DB, "channel_videos", ChannelVideo)- Invidious::Database.check_table(PG_DB, "playlists", InvidiousPlaylist)- Invidious::Database.check_table(PG_DB, "playlist_videos", PlaylistVideo)- Invidious::Database.check_table(PG_DB, "nonces", Nonce)- Invidious::Database.check_table(PG_DB, "session_ids", SessionId)- Invidious::Database.check_table(PG_DB, "users", User)- Invidious::Database.check_table(PG_DB, "videos", Video)-- if CONFIG.cache_annotations- Invidious::Database.check_table(PG_DB, "annotations", Annotation)- end- end+ Invidious::Database.check_integrity(CONFIG)+# Resolve player dependencies. This is done at compile time.+#+# Running the script by itself would show some colorful feedback while this doesn't.+# Perhaps we should just move the script to runtime in order to get that feedback?++{% puts "\nChecking player dependencies...\n" %}+{% if flag?(:minified_player_dependencies) %}+ {% puts run("../scripts/fetch-player-dependencies.cr", "--minified").stringify %}+{% else %}+ {% puts run("../scripts/fetch-player-dependencies.cr").stringify %}+{% end %}+# Start jobsif CONFIG.channel_threads > 0