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.
Can't download first video that matches filter, with --max-downloads set to 1 #16116
Comments
|
Nevermind, I didn't realize I had to put a count after |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.04.03. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
Description of your issue, suggested solution and other information
I'm writing a movie trailer downloader tool, using youtube-dl for downloading. I want to download the first video result (which matches a set of filters) for a given YouTube search string. So far, I'm using this:
This gives me:
...Which does not actually download anything, since the first result does not match the filter (video too long), and once the video info page has been downloaded, it seems to count as a download, and, since I have
max-downloadsset to 1, it does not go on to try the next video in the search results.Is there a way to make this work ?
If there isn't, I think it might be worthwhile to make
--max-downloadstrack the videos that were actually downloaded, and not include the ones that failed the filters. (?)