forked from midou/invidious
Add 'host' to '/videoplayback'
This commit is contained in:
1 parent
11ff40bcd6
commit
f01152eda1
2 files changed
+11
-3
No files matched your search
@@ -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