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

Always returns exit code 0 in CLI mode #1

Closed
MichalKrasowski opened this issue Oct 21, 2014 · 1 comment
Closed

Always returns exit code 0 in CLI mode #1

MichalKrasowski opened this issue Oct 21, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@MichalKrasowski
Copy link
Member

Regards Linux OS.
Returns 0 even if the subtitles were unavailable.
Different exit codes could be useful for scripting.

User story:

  1. Try to download subs for non-existent movie:
    $ qnapi -c movie.avi &> /dev/null && echo ok || echo no
  2. Script returns
    no
@MichalKrasowski MichalKrasowski added this to the 0.1.6 milestone Oct 21, 2014
@krzemin krzemin modified the milestones: 0.1.7, 0.1.6 Jun 22, 2015
@krzemin krzemin self-assigned this Jun 22, 2015
@krzemin krzemin added bug and removed enhancement labels Jun 22, 2015
@krzemin
Copy link
Member

krzemin commented Jun 22, 2015

There were different return codes for different scripting results, but for this case (non-existing file) there was a bug, causing 0 return code.

Thanks for reporting, now it's fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants