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.
youtube download fails via imported module, works from command line invocation #20493
Comments
|
Version you're using in python code is outdated. |
|
Doh. Sorry about that. |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2019.03.18. 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?
If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
https://www.youtube.com/v/2yzMUs3badc
Description of your issue, suggested solution and other information
Trying to download via a python script import of youtube_dl consistently fails, yet attempting the same download with the command line invocation of youtube-dl works fine.
The youtube video in question is: https://www.youtube.com/v/2yzMUs3badc
The python script is doing the following (dl_files.values() the youtube URL from above):
Failing output via the python script is:
When calling youtube-dl directly from the command line, it works: