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.
YoutubeDL DASH manifest is downloaded BEFORE basic checks #13909
Comments
|
@dstftw |
|
@dstftw I really do think this should be classified as a bug rather than feature request. If a program is much slower than it should be due to optimization oversights (which also waste bandwidth with unnecessary requests), that seems like a bug to my way of thinking. Also a rather important one. I'm surprised you didn't prioritize this. But anyway, since y'all have put this on the backburner for 2 years, I guess I'll have to fix it myself! |
I think the question is if this is still true for older/newer/different videos. |
|
So, you're saying YouTube's metadata is stored inconsistently, and sometimes the dash manifest contains stuff like, say, the upload date? |
|
I honestly don't know, but on the other hand, yes, I wouldn't be surprised about inconsistency at all when it comes to YouTube. |
|
Aww. Guess I'll ask the peeps on IRC and see if they know anything. I would like to eventually try to make a pull request if I can to resolve the wasted bandwidth issue. Thanks for your input, @Hrxn. |
(I terminated the program with Ctrl+C, as it running to completion was unhelpful for debugging.)
I've noticed that
youtube-dlwill proceed to download the MPD manifest for every video before it checks if the upload date is in range. This looks like unintended behavior to me.I'm not exactly sure what the MPD manifest is, but from my cursory research, it seems to be just metadata used to allow the client to dynamically request a specific format from the server, depending on network connectivity. (Correct me if I'm wrong on this, please!)
I've also tried running the same command as above, except with
--youtube-skip-dash-manifest, and it's still able to tell which videos it's supposed to not be downloading just fine. So the MPD manifest seems not to contain any information needed determine whether youtube-dl should even attempt to download the video in the first place.