mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Acknowledge precedence for listen operator
This commit is contained in:
parent
3b01bc6735
commit
5d4198c700
1 changed files with 2 additions and 3 deletions
|
@ -210,7 +210,6 @@ 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"]?
|
if env.params.query["t"]?
|
||||||
video_start = decode_time(env.params.query["t"])
|
video_start = decode_time(env.params.query["t"])
|
||||||
end
|
end
|
||||||
|
@ -221,7 +220,7 @@ get "/watch" do |env|
|
||||||
end
|
end
|
||||||
video_end ||= -1
|
video_end ||= -1
|
||||||
|
|
||||||
if env.params.query["listen"]? && env.params.query["listen"] == "true" || env.params.query["listen"] == "1"
|
if env.params.query["listen"]? && (env.params.query["listen"] == "true" || env.params.query["listen"] == "1")
|
||||||
listen = true
|
listen = true
|
||||||
env.params.query.delete_all("listen")
|
env.params.query.delete_all("listen")
|
||||||
end
|
end
|
||||||
|
@ -381,7 +380,7 @@ get "/embed/:id" do |env|
|
||||||
end
|
end
|
||||||
video_end ||= -1
|
video_end ||= -1
|
||||||
|
|
||||||
if env.params.query["listen"]? && env.params.query["listen"] == "true" || env.params.query["listen"] == "1"
|
if env.params.query["listen"]? && (env.params.query["listen"] == "true" || env.params.query["listen"] == "1")
|
||||||
listen = true
|
listen = true
|
||||||
env.params.query.delete_all("listen")
|
env.params.query.delete_all("listen")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue