summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-24 10:58:09 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-02-25 11:01:05 +0900
commita5458a624dbdf039cdae99fb2d8ebb8ffdf13b0b (patch)
tree14895a9b2cd2ad56f097d4183e5dbeb2afc20090
parentedf0b93703fab7ef01272f4e164a6916ad228046 (diff)
downloadmpv-a5458a624dbdf039cdae99fb2d8ebb8ffdf13b0b.tar.bz2
mpv-a5458a624dbdf039cdae99fb2d8ebb8ffdf13b0b.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. (cherry picked from commit 7cff2e41316d508754b7b0725f5236de180f5cc2)
-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