3 ms·
Or even shorter: youtube-dl -x --audio-format mp3 OKbtC223e30
by anw 12y ago
Or even shorter:
youtube-dl -x --audio-format mp3 OKbtC223e30
- Strom 12y agoIn general youtube-dl is great, but that short id input handling is broken, as evidenced by this: youtube-dl -x --audio-format mp3 -fCtvurGDD8
- rossy 12y agoBecause it interprets video IDs that start with a dash as short options? This should be better: youtube-dl -x --audio-format mp3 -- -fCtvurGDD8
- ekimekim 12y agoLike many tools, youtube-dl supports a -- flag to indicate "the remaining arguments are not flags". So your example would work as: youtube-dl -x --audio-format mp3 -- -fCtvurGDD8
- phihag_ 12y agoAs others have pointed out, you'll need -- in this case. However, there's really no reason why youtube-dl should not detect this common problem (we also try to detect when users forget to quote URLs with ampersands). Update to youtube-dl 2014.11.23.1 or newer and try this again ;) By the way, the GitHub issue tracker (https://yt-dl.org/bug https://yt-dl.org/bug ) is usually a better place to report issues. But just for youtube-dl reaching #1 on HN, I'll make an exception.