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.
Channel download: optimization when using `dateafter` cutoff #23706
Comments
|
|
I already use |
|
Checklist
Description
Let's say one uses youtube-dl like this:
With the current strategy, youtube-dl will just loop through every channel, then every video of that channel, even when the date of the videos is decreasing below the
dateaftercutoff. I assume there is a reason for this (like the order of the videos is not guaranteed to be ordered by date), but it would be nice to be able to use a less thorough but faster strategy.The current strategy leads to making hundreds of requests for something that could often be done in a small fraction of that. Maybe it isn't guaranteed to yield the same results, but empirically speaking it has always been the case for me.
A feature that would solve the problem would be an option that let's you break the 'get-videos-for-channel-loop' as soon as you encounter one that is below the
dateaftercutoff.