Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been using youtube-dl to download videos from YouTube, but suddenly it stopped working:

youtube-dl "http://www.youtube.com/watch?v=wglrcytdE9Y&feature=related"

[youtube] Setting language
[youtube] wglrcytdE9Y: Downloading video webpage
[youtube] wglrcytdE9Y: Downloading video info webpage
[youtube] wglrcytdE9Y: Extracting video information

ERROR: unable to download video

youtube-dl --version
share|improve this question
up vote 12 down vote accepted

I'm getting this with every video, even videos that have previously worked. The URL that youtube-dl attempts to download from is returning a 403 error, so I suspect Youtube changed something internally that broke the script (not for the first time).

There's been quite a bit of youtube-dl development activity today, and the latest version in github works, so you should probably pull that. youtube-dl can do this automatically with the -U flag:

$ youtube-dl -U
Updating to latest version...
Updated youtube-dl. Restart youtube-dl to use the new version.
share|improve this answer
Works! Didn't know about the -U flag - is that the same as upgrading with aptitude? (I use sid.) – Emanuel Berg Sep 27 '12 at 19:30
@EmanuelBerg No, it downloads the latest version from github directly. Most likely the version in your package manager is still too old – Michael Mrozek Sep 27 '12 at 19:51

Check this fix:

sudo apt-get install git
git clone https://github.com/rg3/youtube-dl.git
sudo apt-get install zip
nano youtube_dl/InfoExtractors.py (modify line 405)
make compile
share|improve this answer

A common mistake is not escaping the &. Putting the URL in quotes should solve this problem:

$ youtube-dl -t "http://www.youtube.com/watch?v=uHlDtZ6Oc3s&feature=channel_video_title"
share|improve this answer
Its quoted in OP's question. – derobert Sep 27 '12 at 19:47
Besides it already being correct in the question, this mistake wouldn't cause the error he got – Michael Mrozek Sep 27 '12 at 19:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.