deprecate support for external video playback proxy

This commit is contained in:
Fijxu
2025-04-02 21:06:25 -03:00
parent c57a4f4920
commit ce052103e7
9 changed files with 3 additions and 92 deletions

View File

@@ -222,19 +222,13 @@ module Invidious::Routes::API::Manifest
raw_params["host"] = uri.host.not_nil!
proxy = Invidious::HttpServer::Utils.get_external_proxy
if CONFIG.https_only
scheme = "https://"
else
scheme = "http://"
end
if !proxy.empty?
"#{proxy}/videoplayback?#{raw_params}"
else
"#{scheme}#{env.request.headers["Host"]}/videoplayback?#{raw_params}"
end
"#{scheme}#{env.request.headers["Host"]}/videoplayback?#{raw_params}"
end
end