mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Run 'crystal tool format'
This commit is contained in:
parent
4d1fa61bf0
commit
5b47be2b4d
1 changed files with 7 additions and 7 deletions
|
@ -32,7 +32,7 @@ Kemal.config.extra_options do |parser|
|
||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Kemal::CLI.new
|
Kemal::CLI.new
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ get "/watch" do |env|
|
||||||
|
|
||||||
if env.params.query["listen"]? && env.params.query["listen"] == "true"
|
if env.params.query["listen"]? && env.params.query["listen"] == "true"
|
||||||
listen = true
|
listen = true
|
||||||
env.params.query.delete_all("listen")
|
env.params.query.delete_all("listen")
|
||||||
else
|
else
|
||||||
listen = false
|
listen = false
|
||||||
end
|
end
|
||||||
|
@ -181,8 +181,8 @@ get "/watch" do |env|
|
||||||
next templated "error"
|
next templated "error"
|
||||||
end
|
end
|
||||||
|
|
||||||
base = base["src"]
|
base = base["src"]
|
||||||
base = base.split("/")[3].split("-")[1]
|
base = base.split("/")[3].split("-")[1]
|
||||||
|
|
||||||
begin
|
begin
|
||||||
decrypt_signature(fmt_stream[0]["s"], base)
|
decrypt_signature(fmt_stream[0]["s"], base)
|
||||||
|
@ -192,7 +192,7 @@ get "/watch" do |env|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
fmt_stream.each do |fmt|
|
fmt_stream.each do |fmt|
|
||||||
if base
|
if base
|
||||||
fmt["url"] += "&signature=" + decrypt_signature(fmt["s"], base)
|
fmt["url"] += "&signature=" + decrypt_signature(fmt["s"], base)
|
||||||
end
|
end
|
||||||
|
@ -208,7 +208,7 @@ get "/watch" do |env|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
adaptive_fmts.each do |fmt|
|
adaptive_fmts.each do |fmt|
|
||||||
if base
|
if base
|
||||||
fmt["url"] += "&signature=" + decrypt_signature(fmt["s"], base)
|
fmt["url"] += "&signature=" + decrypt_signature(fmt["s"], base)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue