Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
There should be an easy way to automatically gather error information when youtube-dl fails. Specifically, I would like to easily detect whether youtube-dl failed to recognise a given URL at all, whether there was a network error, etc.
Some suggestions:
youtube-dl -jshould report errors on stdout in a JSON object, containing a human-readable message and a machine-readable error code. (To compare, livestreamer does something like that, but it's rather half-hearted: only the error message is wrapped inside JSON.)