mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-19 11:28:51 +00:00
Add 'host' to '/videoplayback'
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user