mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 23:13:18 +08:00
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 7cff2e4131)
This commit is contained in:
committed by
Diogo Franco (Kovensky)
parent
edf0b93703
commit
a5458a624d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user