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

How to check if a url is valid (not private not deleted) #25407

Closed
seyeeet opened this issue May 25, 2020 · 3 comments
Closed

How to check if a url is valid (not private not deleted) #25407

seyeeet opened this issue May 25, 2020 · 3 comments
Labels

Comments

@seyeeet
Copy link

@seyeeet seyeeet commented May 25, 2020

Im using youtube-dl 2020.05.08 with ubuntu 16.04 and python3.
I want to know if there is a way to check if the youtube link is valid or not (e.g. "https://www.youtube.com/watch?v=5tF9Rt2uFtw").
using youtube-dl -j is too slow.
I was wondering if there is a better way/faster to do it?

@seyeeet seyeeet added the question label May 25, 2020
@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 26, 2020

What do you even mean by valid?

@dstftw dstftw closed this May 26, 2020
@seyeeet
Copy link
Author

@seyeeet seyeeet commented May 26, 2020

@dstftw you could have just clicked on the link that I provided to see what I meant.

@karimelgazar
Copy link

@karimelgazar karimelgazar commented Jun 30, 2020

in a python script you can skip these videos without crashing by adding the property ignoreerrors
ydl = YoutubeDL({
# this line is VERY IMPORTANT
"ignoreerrors": True})

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.