From 06a1d2ac41f4bd0992865eb10baefb6742222495 Mon Sep 17 00:00:00 2001 From: syeopite Date: Sat, 11 Sep 2021 22:47:12 -0700 Subject: [PATCH] Rename fetch_videojs* to fetch_player* --- ...dependencies.cr => fetch-player-dependencies.cr} | 0 src/invidious.cr | 13 +++++++++++++ 2 files changed, 13 insertions(+) rename scripts/{fetch-videojs-dependencies.cr => fetch-player-dependencies.cr} (100%) diff --git a/scripts/fetch-videojs-dependencies.cr b/scripts/fetch-player-dependencies.cr similarity index 100% rename from scripts/fetch-videojs-dependencies.cr rename to scripts/fetch-player-dependencies.cr diff --git a/src/invidious.cr b/src/invidious.cr index 5ad2dd91..138e1f50 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -126,6 +126,19 @@ if CONFIG.check_tables end end +# 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) %} + {% run("../scripts/fetch-player-dependencies.cr", "--minified") %} +{% else %} + {% run("../scripts/fetch-player-dependencies.cr") %} +{% end %} +{% puts "Done!\n" %} + # Start jobs if CONFIG.channel_threads > 0