mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Add 'host' to '/videoplayback'
This commit is contained in:
parent
11ff40bcd6
commit
f01152eda1
2 changed files with 11 additions and 3 deletions
|
@ -317,6 +317,7 @@ class Video
|
|||
end
|
||||
|
||||
streams.each do |fmt|
|
||||
fmt["url"] += "&host=" + (URI.parse(fmt["url"]).host || "")
|
||||
fmt["url"] += decrypt_signature(fmt, decrypt_function)
|
||||
end
|
||||
|
||||
|
@ -384,6 +385,7 @@ class Video
|
|||
end
|
||||
|
||||
adaptive_fmts.each do |fmt|
|
||||
fmt["url"] += "&host=" + (URI.parse(fmt["url"]).host || "")
|
||||
fmt["url"] += decrypt_signature(fmt, decrypt_function)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue