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

youtube-dl does not sleeping at all #10865

Closed
hamzaahmedzia1 opened this issue Oct 6, 2016 · 2 comments
Closed

youtube-dl does not sleeping at all #10865

hamzaahmedzia1 opened this issue Oct 6, 2016 · 2 comments
Labels

Comments

@hamzaahmedzia1
Copy link

@hamzaahmedzia1 hamzaahmedzia1 commented Oct 6, 2016

Hi,

I am using youtube-dl version 2016.10.02 installed through pip with python version 2.7.2 GCC 4.9 20140827 on android version 4.04.

I am invoking youtube-dl through another python script with the following options and this manner (fragment shown only)
ydl_opts = { 'sleep': sleepinterval, 'verbose': True, 'useragent' : useragent, 'username' : username, 'password': password, 'abortonerror' : True, 'continue' : True, 'nooverwrites': True, 'playliststart': playliststart, } with youtube_dl.YoutubeDL(ydl_opts) as ydl: ydl.download([courseurl])

What I am observing is that youtube-dl is not sleeping at all for the specified in the sleepinterval variable

For the json key of sleep I have tried variations such as sleep-interval, sleepinterval but nothing can put youtube-dl to sleep between downloading consecutive videos in the playlist. There is a random 3-5 seconds delay to avoid throttling which is the default behavior of youtube-dl.

What option should I use so that youtube-dl sleeps.

Thanks in advance for your time

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Oct 6, 2016

It's not sleep but sleep_interval.
Read FAQ, namely part about available options.

@dstftw dstftw closed this Oct 6, 2016
@dstftw dstftw added the invalid label Oct 6, 2016
@hamzaahmedzia1
Copy link
Author

@hamzaahmedzia1 hamzaahmedzia1 commented Oct 6, 2016

Thanks @dstftw it worked

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.