mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-06-28 18:08:24 +00:00
External Proxies: Proxyfi HLS Playlists
This commit is contained in:
parent
acc22f1741
commit
0883d9c8fe
@ -210,7 +210,13 @@ module Invidious::Routes::API::Manifest
|
|||||||
|
|
||||||
raw_params["host"] = uri.host.not_nil!
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user