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.
Download temporary direct YouTube media links in chunks #17278
Comments
|
You should not use temporary links directly in the first place. Even if you use (you must also pass cookies and headers) you can enforce this option manually. |
What is the purpose of your issue?
In the recent past, YouTube began throttling download speeds which was workaround in #15271 (comment) by downloading the media in chunks. This works well when passing YouTube video URL, for example this command downloads without any speed throttle:
but the speed throttling comes back if using (temporary) direct YouTube media link, for example this throttles:
It would be nice if youtube-dl could automatically detect if such given URLs belong to YouTube and enable chunk based downloading so these direct URLs won't throttle either.
You could confirm the throttling using this general command:
My use case is that sometimes, I only have access (temporary) direct YouTube media link and I need to quickly download a video/audio to local but the throttling increases download times by a big factor. :(