summaryrefslogtreecommitdiffstats
path: root/player/lua/ytdl_hook.lua
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-24 10:58:09 +0100
committerwm4 <wm4@nowhere>2015-02-24 10:58:09 +0100
commit7cff2e41316d508754b7b0725f5236de180f5cc2 (patch)
tree9686726cf9577396e2fbac19c8cf2e9ff1bcf197 /player/lua/ytdl_hook.lua
parenta0894974ffb12322ed472c6a3241433f0bdd60d7 (diff)
downloadmpv-7cff2e41316d508754b7b0725f5236de180f5cc2.tar.bz2
mpv-7cff2e41316d508754b7b0725f5236de180f5cc2.tar.xz
ytdl: add --no-warnings
Silences "[ytdl_hook] WARNING: video doesn't have subtitles", which was an annoying and pointless message printed with almost all youtube videos.
Diffstat (limited to 'player/lua/ytdl_hook.lua')
-rw-r--r--player/lua/ytdl_hook.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua
index acdb23ae3f..f757e5a28b 100644
--- a/player/lua/ytdl_hook.lua
+++ b/player/lua/ytdl_hook.lua
@@ -85,7 +85,7 @@ mp.add_hook("on_load", 10, function ()
local subformat = "ass/srt/best"
local command = {
- ytdl.path, "-J", "--flat-playlist", "--all-subs",
+ ytdl.path, "--no-warnings", "-J", "--flat-playlist", "--all-subs",
"--sub-format", subformat, "--no-playlist"
}
if (format ~= "") then