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

Exit Error Code (ERRORLEVEL in CMD) #1917

Closed
sirinath opened this issue Dec 7, 2013 · 3 comments
Closed

Exit Error Code (ERRORLEVEL in CMD) #1917

sirinath opened this issue Dec 7, 2013 · 3 comments

Comments

@sirinath
Copy link

@sirinath sirinath commented Dec 7, 2013

Is it possible to set the error level to the number of failed downloads or a bit mask return code to signify there was a failure which ever make sense from your end.

@phihag
Copy link
Contributor

@phihag phihag commented Dec 8, 2013

No, it is not a good idea to return the number of failed downloads, since that would collide with common other error codes and in general leave us unable to signal specific error conditions. You can pass the output of youtube-dl or embed it in a Python script. Like all other applications, youtube-dl will exit with 0 iff everything succeeded.

@phihag phihag closed this Dec 8, 2013
@sirinath
Copy link
Author

@sirinath sirinath commented Dec 8, 2013

Can you publish the current error codes

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Dec 8, 2013

0 on success, 1 on failure and 101 if the maximum downloads given with --max-download is reached.

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
3 participants
You can’t perform that action at this time.