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.
Bug in 'progress_hooks' - 'speed' value is None depending on download location #12802
Comments
|
of course now that I put
into my code this isn't an issue. Although initially, with the first example, the value of 'speed' is None, It does change and give the user the download speed. This bug is probably not really a problem if you write proper code, which initially i did not |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.04.17. 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?
Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
I call youtube-dl from within my python script. I use progress_hooks to give the user feedback. the 'speed' key normally will provide the download speed, however depending on where i set 'outtmpl' to, where the file gets saved, the value of 'speed' is None. here are the options send to youtube-dl:
I can reproduce this behavior with 'speed' having a value of none when the 'outtmpl' is set to
however with the 'outtmpl' set to
'speed' will have its expected value. It didn't matter what url i was giving it although i only tried youtube links. Here was the url i was testing with in case it does matter:
https://www.youtube.com/watch?v=PXYeARRyDWk
I'm on Mac os X 10.11.6
Python: 2.7.10
youtube-dl: 2017.04.17