From b8d4951a489a6569e87e65b996f23d35d33c9a82 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 30 May 2018 09:10:56 -0500 Subject: [PATCH] Add support for "t" param in watch page --- src/invidious.cr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/invidious.cr b/src/invidious.cr index 1af54dd2..2d9062c3 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -245,6 +245,10 @@ get "/watch" do |env| if env.params.query["start"]? video_start = decode_time(env.params.query["start"]) end + + if env.params.query["t"]? + video_start = decode_time(env.params.query["t"]) + end video_start ||= 0 if env.params.query["end"]?