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

ERROR is not ignored with arg "-i" when multiple commands are concatenated #22022

Closed
jcn50 opened this issue Aug 6, 2019 · 1 comment
Closed

ERROR is not ignored with arg "-i" when multiple commands are concatenated #22022

jcn50 opened this issue Aug 6, 2019 · 1 comment
Labels

Comments

@jcn50
Copy link

@jcn50 jcn50 commented Aug 6, 2019

Checklist

  • [N/A] I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2019.08.02
  • [N/A] I've checked that all provided URLs are alive and playable in a browser
  • [N/A] I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

Not applicable

Description

When a channel does not exists anymore, the subsequent commands (or cron) are not executed:

[root@ip-172-31-47-135 ~]# youtube-dl -i https://www.youtube.com/user/TheAlexJonesChannel && youtube-dl -i https://www.youtube.com/user/GeographyNow/
[youtube:user] TheAlexJonesChannel: Downloading channel page
WARNING: Unable to download webpage: HTTP Error 404: Not Found
[youtube:user] TheAlexJonesChannel: Downloading page #1
ERROR: Unable to download webpage: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

The next part of the command (after the "&&") is not executed, despite using the "-i" argument. Any other kind of YouTube error does the same. Soft termination is wanted (please).

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Aug 6, 2019

read about what && does(the first command fail because the URL is not available).
you might want to replace && with ; or just pass both URLs in the same command.

@remitamine remitamine closed this Aug 6, 2019
@remitamine remitamine added the invalid label Aug 6, 2019
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.