Add support for "t" param in watch page

pull/3/head
Omar Roth 6 years ago
parent 471f5345e2
commit b8d4951a48

@ -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"]?

Loading…
Cancel
Save