1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-13 02:16:54 +00:00
mpv/player/lua
Guido Cella 42fd6f5f6f ytdl_hook.lua: make exec return a single value
This refactors exec to only return the result of the subprocess command,
and makes the rest of run_ytdl_hook use the fields of this result,
because specifying all those return values multiple times is unwieldy
now that exec is called several times, and this is easier to read
anyway.

I removed the line
err = string.format("%s returned '%d'", err, es)
altogether instead of updating the es variable, because there was no
chance of it being executed since it would only happen when
result.killed_by_us is true, but run_ytdl_hook returns early when it is.
2023-02-27 17:04:42 +00:00
..
assdraw.lua
auto_profiles.lua
console.lua console: observe osc margins from user-data instead of shared-script-properties 2023-02-26 17:54:09 -06:00
defaults.lua lua/js: remove user-data helpers 2023-01-29 01:52:31 +02:00
options.lua
osc.lua osc: set values in user-data in addition to shared-script-properties 2023-02-26 17:54:09 -06:00
stats.lua stats.lua: display HDR peak in nits 2023-02-02 14:22:40 +00:00
ytdl_hook.lua ytdl_hook.lua: make exec return a single value 2023-02-27 17:04:42 +00:00