summaryrefslogtreecommitdiffstats
path: root/src/invidious.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/invidious.cr')
-rw-r--r--src/invidious.cr8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 36450676..b6356a51 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -90,6 +90,8 @@ YT_URL = URI.parse("https://www.youtube.com")
REDDIT_URL = URI.parse("https://www.reddit.com")
LOGIN_URL = URI.parse("https://accounts.google.com")
TEXTCAPTCHA_URL = URI.parse("http://textcaptcha.com/omarroth@hotmail.com.json")
+CURRENT_COMMIT = `git rev-list HEAD --max-count=1 --abbrev-commit`.strip
+CURRENT_VERSION = `git describe --tags $(git rev-list --tags --max-count=1)`.strip
LOCALES = {
"ar" => load_locale("ar"),
@@ -119,6 +121,12 @@ config.video_threads.times do |i|
end
end
+# stats = Statistics.new
+# if config.statistics
+# spawn do
+# end
+# end
+
top_videos = [] of Video
if config.top_enabled
spawn do