diff options
author | Ricardo Constantino <wiiaboo@gmail.com> | 2017-01-31 18:22:57 +0000 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-02-04 22:34:47 +0100 |
commit | 7e6b37be07a433cca19309fc5ccfc762149301b6 (patch) | |
tree | d4984e2c5e287dd866cdf81f64a59e0750ca0fce /player/lua/ytdl_hook.lua | |
parent | 61202bb3640740d2cb98cf13922dcdf67970d5ef (diff) | |
download | mpv-7e6b37be07a433cca19309fc5ccfc762149301b6.tar.bz2 mpv-7e6b37be07a433cca19309fc5ccfc762149301b6.tar.xz |
ytdl_hook: Add non-dash fallbacks to default formats
Diffstat (limited to 'player/lua/ytdl_hook.lua')
-rw-r--r-- | player/lua/ytdl_hook.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua index fba5100822..ddb699cb48 100644 --- a/player/lua/ytdl_hook.lua +++ b/player/lua/ytdl_hook.lua @@ -142,15 +142,15 @@ mp.add_hook("on_load", 10, function () if (mp.get_property("options/vid") == "no") and not option_was_set("ytdl-format") then - format = "bestaudio" + format = "bestaudio/best" msg.verbose("Video disabled. Only using audio") end if (format == "") then - format = "bestvideo+bestaudio" + format = "bestvideo+bestaudio/best" end table.insert(command, "--format") - table.insert(command, string.format('%s', format)) + table.insert(command, format) for param, arg in pairs(raw_options) do table.insert(command, "--" .. param) |