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

Put a sleep between downloads for batch-mode downloads #12063

Closed
sevakmaheshr opened this issue Feb 10, 2017 · 1 comment
Closed

Put a sleep between downloads for batch-mode downloads #12063

sevakmaheshr opened this issue Feb 10, 2017 · 1 comment

Comments

@sevakmaheshr
Copy link

@sevakmaheshr sevakmaheshr commented Feb 10, 2017

  • I've verified and I assure that I'm running youtube-dl 2017.02.10

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

So let's say I am downloading a youtube or udemy playlist. I am not certain who's doing it, but, youtube-dl stops working after some time. I have killall python, and then restart the download process.

What I would like is this: when downloading a playlist ... youtube-dl should automatically insert a "sleep <some small value like say 30s>" between multiple downloads. So, e.g., youtube-dl could sleep for 30s after downloading 5 or 10 videos. And then the download op can continue downloading further.

Why do I need this feature? Because it is my (unproven) belief that the peeps admining the servers are somehow reseting my download connection as soon as they realize that a particular host if "downloading" rather than browsing and watching the videos.

Appreciate if you add this feature.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 10, 2017

There is only sleep between each download available.

--sleep-interval SECONDS         Number of seconds to sleep before each
                                 download when used alone or a lower bound
                                 of a range for randomized sleep before each
                                 download (minimum possible number of
                                 seconds to sleep) when used along with
                                 --max-sleep-interval.
--max-sleep-interval SECONDS     Upper bound of a range for randomized sleep
                                 before each download (maximum possible
                                 number of seconds to sleep). Must only be
                                 used along with --min-sleep-interval.
@dstftw dstftw closed this Feb 10, 2017
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.