diff options
Diffstat (limited to 'player')
-rw-r--r-- | player/lua/ytdl_hook.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua index a3be2be812..5e87bc3bc3 100644 --- a/player/lua/ytdl_hook.lua +++ b/player/lua/ytdl_hook.lua @@ -104,11 +104,11 @@ mp.add_hook("on_load", 10, function () "--sub-format", subformat, "--no-playlist" } - -- Checks if video option is "no", change options accordingly - if (mp.get_property("options/vid") == "no") then - format = "bestaudio/best" - msg.verbose("Video disabled. Only using audio") - end + -- Checks if video option is "no", change options accordingly + if (mp.get_property("options/vid") == "no") then + format = "bestaudio/best" + msg.verbose("Video disabled. Only using audio") + end if (format ~= "") then table.insert(command, "--format") |