mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-25 04:43:10 +00:00
Add support for "t" param in watch page
This commit is contained in:
@ -245,6 +245,10 @@ get "/watch" do |env|
|
|||||||
if env.params.query["start"]?
|
if env.params.query["start"]?
|
||||||
video_start = decode_time(env.params.query["start"])
|
video_start = decode_time(env.params.query["start"])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if env.params.query["t"]?
|
||||||
|
video_start = decode_time(env.params.query["t"])
|
||||||
|
end
|
||||||
video_start ||= 0
|
video_start ||= 0
|
||||||
|
|
||||||
if env.params.query["end"]?
|
if env.params.query["end"]?
|
||||||
|
Reference in New Issue
Block a user