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

If a video is no longer available the entire query array is stopped short #11881

Closed
Mochlate opened this issue Jan 30, 2017 · 1 comment
Closed

If a video is no longer available the entire query array is stopped short #11881

Mochlate opened this issue Jan 30, 2017 · 1 comment

Comments

@Mochlate
Copy link

@Mochlate Mochlate commented Jan 30, 2017

The third video in this list "is not available", but the fourth is. In this case you only get the first 2 back, is this a known bug? It should either return an empty object or just ignore the object all together. Not just ignore the rest.

Is there any way around this or ?

var youtubedl = require('youtube-dl');
var queryArr = [ 'https://www.youtube.com/watch?v=NCuoBRAgwJE',
   		 'https://www.youtube.com/watch?v=KX4GNDb4RSI',
  		 'https://www.youtube.com/watch?v=tn8IK7YtOYE',
  		 'https://www.youtube.com/watch?v=R4obXWnK3Xo' ];
youtubedl.getInfo(queryArr, [], {maxBuffer: 10000*1024}, function(err, info) {
  if (err) throw err;
  for(s in info) {
    console.log(info[s].webpage_url);
  }
});
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jan 30, 2017

You are using a javascript module for youtube-dl, you should report the issue to them.

A way to solve it (if the module allows it) is to pass the --ignore-errors option, it will skip the video that is not available.

@jaimeMF jaimeMF closed this Jan 30, 2017
@ytdl-org ytdl-org locked and limited conversation to collaborators Jan 31, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.