mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Add support for "t" param in watch page
This commit is contained in:
parent
471f5345e2
commit
b8d4951a48
1 changed files with 4 additions and 0 deletions
|
@ -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"]?
|
||||||
|
|
Loading…
Reference in a new issue