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.
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