Closed arcnmx closed 4 years ago
I think it'd be nice to see error message from youtbe-dl, or at least a message indicating that youtube-dl failed. But that's probably not a high priority right now.
It might be nice to capture the stderr message, but yeah agreeing that's pretty low priority for now. It's not unusual to check mpd's logs for more details when something goes wrong anyway.
When youtube-dl fails it typically prints an error message to stderr, then exits with a failure code. When this happens stdout is empty, so yajl errors out with an unexpected EOF parse error.
(I have no strong opinions either way but both items seem reasonable enough - though reading stderr seems a little annoying and maybe unnecessary)