mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-03 08:29:46 +01:00
Fix signature decryption for videos that don't have 'adaptive_fmts'
This commit is contained in:
parent
3b323dc6b0
commit
9ed72a8dad
@ -344,7 +344,7 @@ get "/watch" do |env|
|
||||
end
|
||||
end
|
||||
|
||||
if adaptive_fmts[0]? && adaptive_fmts[0]["s"]?
|
||||
if fmt_stream[0]? && fmt_stream[0]["s"]?
|
||||
adaptive_fmts.each do |fmt|
|
||||
fmt["url"] += "&signature=" + decrypt_signature(fmt["s"], decrypt_function)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user