mirror of
https://github.com/mpv-player/mpv
synced 2025-03-22 19:34:14 +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,
|
-- Checks if video option is "no", change format accordingly,
|
||||||
-- but only if user didn't explicitly set one
|
-- but only if user didn't explicitly set one
|
||||||
if (mp.get_property("options/vid") == "no")
|
if (mp.get_property("options/vid") == "no") and (#format == 0) then
|
||||||
and not option_was_set("ytdl-format") then
|
|
||||||
|
|
||||||
format = "bestaudio/best"
|
format = "bestaudio/best"
|
||||||
msg.verbose("Video disabled. Only using audio")
|
msg.verbose("Video disabled. Only using audio")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user