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

Just tell wether youtube-dl is able to download or not #4215

Closed
Kaligule opened this issue Nov 16, 2014 · 2 comments
Closed

Just tell wether youtube-dl is able to download or not #4215

Kaligule opened this issue Nov 16, 2014 · 2 comments

Comments

@Kaligule
Copy link

@Kaligule Kaligule commented Nov 16, 2014

Not sure if this somehow in the verbosity options already. I didn't find it.

It would be nice to have an option for youtube-dl that just return a boolean value: "I would be able to download a video from this site / I wouldn't".

This would make one able to categorize linklists into video/nonVideo.

@phihag
Copy link
Contributor

@phihag phihag commented Nov 16, 2014

You can simply check for the error being "unsupported URL". Alternatively, call youtube-dl with -j or similiar and check whether anything is returned.

There is no way to know whether the download will return one or more videos without actually downloading the URL, since youtube-dl can detect 302 redirects, embedded videos, RSS feeds and the like.

@phihag phihag closed this Nov 16, 2014
@Kaligule
Copy link
Author

@Kaligule Kaligule commented Nov 16, 2014

This helps, thanks.

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.