diff --git a/src/invidious/routes/api/manifest.cr b/src/invidious/routes/api/manifest.cr index f1fa4124..c6906346 100644 --- a/src/invidious/routes/api/manifest.cr +++ b/src/invidious/routes/api/manifest.cr @@ -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