External Proxies: Proxyfi HLS Playlists
All checks were successful
Invidious CI / build (push) Successful in 5m22s
All checks were successful
Invidious CI / build (push) Successful in 5m22s
This commit is contained in:
parent
9a66a7bd51
commit
8d7ca9a4e2
1 changed files with 7 additions and 1 deletions
|
@ -210,9 +210,15 @@ module Invidious::Routes::API::Manifest
|
||||||
|
|
||||||
raw_params["host"] = uri.host.not_nil!
|
raw_params["host"] = uri.host.not_nil!
|
||||||
|
|
||||||
|
proxy = Invidious::HttpServer::Utils.get_external_proxy
|
||||||
|
|
||||||
|
if !proxy.empty?
|
||||||
|
"#{proxy}/videoplayback?#{raw_params}"
|
||||||
|
else
|
||||||
"#{HOST_URL}/videoplayback?#{raw_params}"
|
"#{HOST_URL}/videoplayback?#{raw_params}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
manifest
|
manifest
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue