Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Machine-readable errors #2913

Open
fstirlitz opened this issue May 13, 2014 · 0 comments
Open

Machine-readable errors #2913

fstirlitz opened this issue May 13, 2014 · 0 comments
Labels

Comments

@fstirlitz
Copy link
Contributor

@fstirlitz fstirlitz commented May 13, 2014

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:

  • Use exit codes other than 0 or 1.
  • youtube-dl -j should 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.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.