mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-24 17:19:51 +05:30
Clean up decrypt_signature for watch page
This commit is contained in:
parent
ce28348da5
commit
22800efbc4
@ -253,12 +253,7 @@ get "/watch" do |env|
|
||||
end
|
||||
end
|
||||
|
||||
signature = false
|
||||
if adaptive_fmts[0]? && adaptive_fmts[0]["s"]?
|
||||
signature = true
|
||||
end
|
||||
|
||||
if signature
|
||||
adaptive_fmts.each do |fmt|
|
||||
fmt["url"] += "&signature=" + decrypt_signature(fmt["s"])
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user