mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Clean up decrypt_signature for watch page
This commit is contained in:
parent
ce28348da5
commit
22800efbc4
1 changed files with 0 additions and 5 deletions
|
@ -253,12 +253,7 @@ get "/watch" do |env|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
signature = false
|
|
||||||
if adaptive_fmts[0]? && adaptive_fmts[0]["s"]?
|
if adaptive_fmts[0]? && adaptive_fmts[0]["s"]?
|
||||||
signature = true
|
|
||||||
end
|
|
||||||
|
|
||||||
if signature
|
|
||||||
adaptive_fmts.each do |fmt|
|
adaptive_fmts.each do |fmt|
|
||||||
fmt["url"] += "&signature=" + decrypt_signature(fmt["s"])
|
fmt["url"] += "&signature=" + decrypt_signature(fmt["s"])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue