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.
I opened this issue to describe what I'm trying to solve in this pull request #3829.
When we add a progress hook using
YoutubeDL.add_progress_hook, to be able to get the download infodictfrom theHttpFDclass which looks like this:This info
dictis passed to the progress hooks only in these cases:continuedlisTrueand we're using.partfilesBut we don't get this
dictwhennooverwritesisTrueand the file exists, which I think is the same as whencontinuedlisTrue, so what's preventing the hooks from getting the infodictis this check insideYoutubeDL.process_info:If we let
FileDownloader.downloadhandle this check, this problem will be solved:So this pull request #3829 fixes this problem.