summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2021-10-15 23:04:54 +0200
committerDudemanguy <random342@airmail.cc>2023-02-27 17:04:42 +0000
commit42fd6f5f6f78a9cdd453d9a5263bb52dbb19d866 (patch)
tree9c9bdd2e24c0eab80d9b2d3ea2c35f636652720a /wscript
parent0772d0263ce0b09257fd6df4e9891bb4cd61b35c (diff)
downloadmpv-42fd6f5f6f78a9cdd453d9a5263bb52dbb19d866.tar.bz2
mpv-42fd6f5f6f78a9cdd453d9a5263bb52dbb19d866.tar.xz
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.
Diffstat (limited to 'wscript')
0 files changed, 0 insertions, 0 deletions