mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-09 21:55:47 -05:00
pass Host header to hls manifest
This commit is contained in:
parent
d46a0e32e9
commit
f88fe43877
@ -237,7 +237,7 @@ module Invidious::Routes::API::Manifest
|
|||||||
manifest = response.body
|
manifest = response.body
|
||||||
|
|
||||||
if local
|
if local
|
||||||
manifest = manifest.gsub("https://www.youtube.com", HOST_URL)
|
manifest = manifest.gsub("https://www.youtube.com", env.request.headers["Host"])
|
||||||
manifest = manifest.gsub("index.m3u8", "index.m3u8?local=true")
|
manifest = manifest.gsub("index.m3u8", "index.m3u8?local=true")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user