Skip to content

Commit

Permalink
ytdl_hook: pass empty proxy value
Browse files Browse the repository at this point in the history
an empty value to a commandline option usually means that parameter does
not expect anything, but in case of `--proxy`, yt-dlp use an empty value to
disable proxy setting, the empty value need to be passed to `--proxy`
  • Loading branch information
ykelvis authored and avih committed Dec 17, 2024
1 parent 2756a78 commit 96fad6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion player/lua/ytdl_hook.lua
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ local function run_ytdl_hook(url)

for param, arg in pairs(raw_options) do
table.insert(command, "--" .. param)
if arg ~= "" then
if arg ~= "" or param == "proxy" then
table.insert(command, arg)
end
if (param == "sub-lang" or param == "sub-langs" or param == "srt-lang") and (arg ~= "") then
Expand Down

0 comments on commit 96fad6a

Please sign in to comment.