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.
Exit code for --download-archive #13598
Comments
|
An exit case of 0 in this case is correct; there was no failure, everything worked as expected, so a nonzero exit code would not be convention. There are better ways to do what you want.
|
|
I'm having the opposite problem.
youtube-dl has completed what I consider a successful run but isn't exiting with a 0. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.07.02. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
Output
Issue
The exit code is 0 even though no video is downloaded. This makes it impossible in a script to determine if youtube-dl actually downloaded something. Could we have an appropriate exit code, like with --max-downloads? See also #10388