mirror of
https://github.com/iv-org/invidious.git
synced 2025-11-23 09:55:29 +00:00
Add &start and &end to watch page
This commit is contained in:
@@ -207,6 +207,12 @@ get "/watch" do |env|
|
||||
next env.redirect "/"
|
||||
end
|
||||
|
||||
video_start = env.params.query["start"]?.try &.to_i
|
||||
video_start ||= 0
|
||||
|
||||
video_end = env.params.query["end"]?.try &.to_i
|
||||
video_end ||= -1
|
||||
|
||||
listen = false
|
||||
if env.params.query["listen"]? && env.params.query["listen"] == "true"
|
||||
listen = true
|
||||
|
||||
Reference in New Issue
Block a user