diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua index 86f3fe8f77..7e77eb01ba 100644 --- a/player/lua/ytdl_hook.lua +++ b/player/lua/ytdl_hook.lua @@ -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