pass Host header to hls manifest

This commit is contained in:
Fijxu 2025-03-31 23:28:54 -03:00
parent b4b0a8ab75
commit e0f8713fb5
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4

View File

@ -237,7 +237,7 @@ module Invidious::Routes::API::Manifest
manifest = response.body
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")
end