VLC 2.0.3 Fails to Play Youtube Videos on Debian

Trying to play Youtube video fails with the following error:

lua error: Couldn't extract youtube video URL, please check for updates to this script

We have a Debian Wheezy machine with VLC 2.0.3 installed.

# dpkg -l vlc
||/ Name     Version      Architecture   Description
ii  vlc      2.0.3-5      amd64          multimedia player and streamer

The problem can be fix by replacing the original youtube.luac file with the content from the following git:


Create a backup first:

# mv /usr/lib/vlc/lua/playlist/youtube.luac /usr/lib/vlc/lua/playlist/youtube.luac.org

Create a new youtube.luac file and paste the content of the git:

# vim /usr/lib/vlc/lua/playlist/youtube.luac