mirror of
https://github.com/mpv-player/mpv
synced 2025-03-21 18:57:35 +00:00
ytdl_hook: --vid=no should not ignore --ytdl-format in config file
Do this only if ytdl-format was not set at all. Fixes: #6636
This commit is contained in:
parent
14eefb7c0a
commit
a935109235
@ -501,9 +501,7 @@ function run_ytdl_hook(url)
|
||||
|
||||
-- Checks if video option is "no", change format accordingly,
|
||||
-- but only if user didn't explicitly set one
|
||||
if (mp.get_property("options/vid") == "no")
|
||||
and not option_was_set("ytdl-format") then
|
||||
|
||||
if (mp.get_property("options/vid") == "no") and (#format == 0) then
|
||||
format = "bestaudio/best"
|
||||
msg.verbose("Video disabled. Only using audio")
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user