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.
youtube-dl hangs on large playlist even with --no-playlist #11979
Comments
|
It's been a sub-optimal regular expression for parsing HTML5 embeds. Not it's fixed and takes about 25 seconds to match embeds with generic extractor in this 40 MB file. |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.02.04.1. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
I have a small program which calls youtube-dl. I always want users which use the program to download single files only, thus I use the
--no-playlistflag. However, when somebody pastes a large file with multiple videos in it, youtube-dl begins to hang with 100% cpu usage. On the link below, this even takes multiple hours so you have to kill the process.How can I prevent youtube-dl from doing this? Is there something like a timeout? Obviously,
--socket-timeoutwon't work here.Of course I could set a timeout in my program and then kill youtube-dl if it runs more than X seconds, but I first wanted to ask whether I can simply do this with youtube-dl.