mirror of https://github.com/mpv-player/mpv
ff47926d6a
It's useful for user scripts to be able to use the same ytdl binary that ytdl_hook uses without having to replicate ytdl_hook's process of searching for the ytdl binary. Some user scripts might also find it useful to be able to access ytdl's json output that the ytdl_hook already receives, sparing user scripts from having to make a duplicate ytdl binary invocation to get the json output. Providing just the json output is not enough though, as ytdl doesn't communicate errors though it -- if an error occurs, ytdl provides no json output and instead prints to stderr. So without stderr, there is no way for user scripts to figure out why ytdl has failed: no such username / video id, the channel is not live yet, etc. Because of that, the entire result of the subprocess call is provided to the user scripts, containing stdout (json), stderr, ytdl's exit code, etc. |
||
---|---|---|
.. | ||
af.rst | ||
ao.rst | ||
changes.rst | ||
console.rst | ||
encode.rst | ||
input.rst | ||
ipc.rst | ||
javascript.rst | ||
libmpv.rst | ||
lua.rst | ||
mpv.rst | ||
options.rst | ||
osc.rst | ||
stats.rst | ||
vf.rst | ||
vo.rst |