diff options
author | Retusthese <84878539+Retusthese@users.noreply.github.com> | 2021-05-27 15:25:48 -0400 |
---|---|---|
committer | avih <avih@users.noreply.github.com> | 2021-05-29 19:54:03 +0300 |
commit | fd8c673cfc1ee51f0bb05c8247a35d44003366da (patch) | |
tree | 9d637f9d82a9194cd3f956762c1de5065a955888 /DOCS | |
parent | d7f3d1fff75a07bef91eef0edb9ae7db6d590637 (diff) | |
download | mpv-fd8c673cfc1ee51f0bb05c8247a35d44003366da.tar.bz2 mpv-fd8c673cfc1ee51f0bb05c8247a35d44003366da.tar.xz |
ytdl_hook: improve handling of json parsing errors
This moves the JSON parsing above the main youtube-dl error-handling
block and integrates parsing errors into that block. Now, if a parsing
error occurs, youtube-dl's stderr will be logged as it is with other
errors. This also catches errors that cause youtube-dl to output
"null", which would previously be mishandled as a parsing error and
crash ytdl_hook when it attempted to concatenate the error string from
parse_json.
Diffstat (limited to 'DOCS')
0 files changed, 0 insertions, 0 deletions