Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Just tell wether youtube-dl is able to download or not #4215
Comments
|
You can simply check for the error being "unsupported URL". Alternatively, call youtube-dl with 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. |
|
This helps, thanks. |
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.