YouTube broke this
If you're looking for a fix, see fork https://gist.github.com/p3g4asus/597050997e01f8fd1fcf473fe6545a4f
It works around this by using youtube-dl, since the lua http interface for VLC is not expressive enough to create a proper fix.