diff options
author | wm4 <wm4@nowhere> | 2015-02-24 10:58:09 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-24 10:58:09 +0100 |
commit | 7cff2e41316d508754b7b0725f5236de180f5cc2 (patch) | |
tree | 9686726cf9577396e2fbac19c8cf2e9ff1bcf197 /player/lua/ytdl_hook.lua | |
parent | a0894974ffb12322ed472c6a3241433f0bdd60d7 (diff) | |
download | mpv-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.lua | 2 |
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 |