diff options
author | Ricardo Constantino <wiiaboo@gmail.com> | 2016-09-22 19:30:06 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-22 20:34:42 +0200 |
commit | 6ba2bbd09082232e3bf73af79b39389c850757fc (patch) | |
tree | f979e68ceacbb2d64ce27f482052159c78727756 /player | |
parent | 9179e8ed21e35731cdd7ba258d46090e57a8c281 (diff) | |
download | mpv-6ba2bbd09082232e3bf73af79b39389c850757fc.tar.bz2 mpv-6ba2bbd09082232e3bf73af79b39389c850757fc.tar.xz |
ytdl_hook: temporarily force disable dash segments formats
Diffstat (limited to 'player')
-rw-r--r-- | player/lua/ytdl_hook.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua index 04777b97cf..a41e994ac8 100644 --- a/player/lua/ytdl_hook.lua +++ b/player/lua/ytdl_hook.lua @@ -93,14 +93,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/best" + format = "bestaudio" msg.verbose("Video disabled. Only using audio") end - if (format ~= "") then - table.insert(command, "--format") - table.insert(command, format) + if (format == "") then + format = "bestvideo+bestaudio" end + table.insert(command, "--format") + table.insert(command, string.format('(%s)[protocol!=http_dash_segments]/best', format)) for param, arg in pairs(raw_options) do table.insert(command, "--" .. param) |