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.
RFE: random sleep between downloads #9561
Comments
|
There is already an option for sleep between downloads |
When bulk downloading, I often place a delay between individual downloads, partly to be polite and partly to avoid triggering bot detection mechanisms. Something like "for i in
cat urllist; do youtube-dl $i; sleep 30; done". This would be nice to have as a built-in option, so that it (a) works with remote playlists, (b) can be used by windoze users and (c) can randomise the delay. A new option "--random-delay min max" coupled to random.randrange(min, max, 1) would easily do the trick. It doesn't even need to verify that it is being applied to a playlist, because adding a useless delay after a single video download works anyway.