From c049ba59ff1a9c7f7608b94cff30cc840ed13c75 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 26 May 2019 13:49:35 -0500 Subject: [PATCH] Add stub for '/timedtext_video' --- src/invidious.cr | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/invidious.cr b/src/invidious.cr index 53cbcef0..b37550e2 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -2950,6 +2950,12 @@ get "/profile" do |env| end end +# Page used by YouTube to provide captioning widget, since we +# don't support it we redirect to '/' +get "/timedtext_video" do |env| + env.redirect "/" +end + get "/user/:user" do |env| user = env.params.url["user"] env.redirect "/channel/#{user}"