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.
--extract-audio option not working anymore #470
Comments
|
It seems Python 2.6.5 subprocess object doesn't have a check_output function. It's a new function from Python 2.7 onwards, which is why it's failing when using a lower version. The way around it would be to use the Popen object and communicate with it, though there may be other ways. In the meantime, you can upgrade to Python 2.7 if it's possible, that should solve the issue. EDIT : Quick fix that seems to be working with both Python 2.6 and 2.7. Not tested on Windows though, but it should work as well. |
|
The quick fix is not identical to the old semantics, but we can simply port |
|
Note that
|
|
We will push a new version soon. Anyway, the issue is resolved in the code? Closing? |
|
Yep, fixed in 073522b! |
|
Great! (Thanks @Tailszefox for all the help around here |
|
No problem, I figured that since I use youtube-dl pretty much every day I might as well help with whatever I can! |
Having a functional youtube-dl with extract-audio opions, working fine. At some point, stopped working, prolly due to change from youtube.
Did: youtube-dl -U for an update (as I do usually).
Now: youtube-dl works fine when downloading a video, but fails with extract audio option
Example:
youtube-dl --extract-audio -o "%(title)s.%(ext)s" http://www.youtube.com/watch?v=Ngag_t5Vdlw
Traceback (most recent call last):
File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "/usr/bin/youtube-dl/main.py", line 7, in
File "/usr/bin/youtube-dl/init.py", line 548, in main
File "/usr/bin/youtube-dl/init.py", line 518, in _real_main
File "/usr/bin/youtube-dl/PostProcessor.py", line 70, in init
File "/usr/bin/youtube-dl/PostProcessor.py", line 81, in detect_executables
File "/usr/bin/youtube-dl/PostProcessor.py", line 81, in
File "/usr/bin/youtube-dl/PostProcessor.py", line 76, in executable
AttributeError: 'module' object has no attribute 'check_output'
Python version is 2.6.5, running on debian squeeze/sid.
youtube-dl version is 2012.10.09
Any idea?