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

RFE: random sleep between downloads #9561

Closed
zenonp opened this issue May 21, 2016 · 1 comment
Closed

RFE: random sleep between downloads #9561

zenonp opened this issue May 21, 2016 · 1 comment

Comments

@zenonp
Copy link

@zenonp zenonp commented May 21, 2016

  • [x ] I've verified and I assure that I'm running youtube-dl 2016.05.16
  • [x ] Feature request (request for a new functionality)

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.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 21, 2016

There is already an option for sleep between downloads --sleep-interval though without randomization.

@dstftw dstftw closed this May 21, 2016
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.