External Proxies: Proxyfi HLS Playlists

This commit is contained in:
Fijxu 2024-10-14 17:57:52 -03:00
parent acc22f1741
commit 0883d9c8fe
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4

View file

@ -210,7 +210,13 @@ module Invidious::Routes::API::Manifest
raw_params["host"] = uri.host.not_nil!
"#{HOST_URL}/videoplayback?#{raw_params}"
proxy = Invidious::HttpServer::Utils.get_external_proxy
if !proxy.empty?
"#{proxy}/videoplayback?#{raw_params}"
else
"#{HOST_URL}/videoplayback?#{raw_params}"
end
end
end