ytdl_hook: use native http-proxy option instead of lavf option

Fixes: #18042
This commit is contained in:
Kacper Michajłow committed 2026-06-18 05:27:17 +02:00
1 parent f8150c78d5
commit 2d5dfb343a
1 file changed
+2 -3
+2 -3
View File
@@ -844,9 +844,8 @@ local function add_single_video(json)
"rtmp_app", json.app)
end
if json.proxy and json.proxy ~= "" then
stream_opts = append_libav_opt(stream_opts,
"http_proxy", json.proxy)
if json.proxy and json.proxy ~= "" and not option_was_set("http-proxy") then
mp.set_property("file-local-options/http-proxy", json.proxy)
end
set_cookies(cookies)