On precise with version 2012.02.27-1, I can reproduce the failure to download youtube videos:
$ youtube-dl -t https://www.youtube.com/watch?v=kmNRN-l-BJw
[youtube] Setting language
[youtube] kmNRN-l-BJw: Downloading video webpage
[youtube] kmNRN-l-BJw: Downloading video info webpage
[youtube] kmNRN-l-BJw: Extracting video information
$ sudo dpkg -i youtube-dl_2012.02.27-1ubuntu0.1_all.deb
(Reading database ... 240033 files and directories currently installed.)
Preparing to replace youtube-dl 2012.02.27-1 (using youtube-dl_2012.02.27-1ubuntu0.1_all.deb) ...
Unpacking replacement youtube-dl ...
Setting up youtube-dl (2012.02.27-1ubuntu0.1) ...
Processing triggers for man-db ...
$ youtube-dl -t https://www.youtube.com/watch?v=kmNRN-l-BJw
[youtube] Setting language
[youtube] kmNRN-l-BJw: Downloading video webpage
[youtube] kmNRN-l-BJw: Downloading video info webpage
[youtube] kmNRN-l-BJw: Extracting video information
[download] Destination: MechWarrior_Online_Video_Preview-kmNRN-l-BJw.mp4
[download] 100.0% of 61.84M at 2.09M/s ETA 00:00
On precise with version 2012.02.27-1, I can reproduce the failure to download youtube videos:
$ youtube-dl -t https:/ /www.youtube. com/watch? v=kmNRN- l-BJw
[youtube] Setting language
[youtube] kmNRN-l-BJw: Downloading video webpage
[youtube] kmNRN-l-BJw: Downloading video info webpage
[youtube] kmNRN-l-BJw: Extracting video information
ERROR: unable to download video
This is an instance of this upstream bug:
https:/ /github. com/rg3/ youtube- dl/issues/ 427
Which is fixed with this commit:
https:/ /github. com/rg3/ youtube- dl/commit/ 9ca667065e73713 22e0970421fb4e0 3f8bd00b9e
With that change applied, the test case passes:
$ sudo dpkg -i youtube- dl_2012. 02.27-1ubuntu0. 1_all.deb dl_2012. 02.27-1ubuntu0. 1_all.deb) ... 27-1ubuntu0. 1) ...
(Reading database ... 240033 files and directories currently installed.)
Preparing to replace youtube-dl 2012.02.27-1 (using youtube-
Unpacking replacement youtube-dl ...
Setting up youtube-dl (2012.02.
Processing triggers for man-db ...
$ youtube-dl -t https:/ /www.youtube. com/watch? v=kmNRN- l-BJw Online_ Video_Preview- kmNRN-l- BJw.mp4
[youtube] Setting language
[youtube] kmNRN-l-BJw: Downloading video webpage
[youtube] kmNRN-l-BJw: Downloading video info webpage
[youtube] kmNRN-l-BJw: Extracting video information
[download] Destination: MechWarrior_
[download] 100.0% of 61.84M at 2.09M/s ETA 00:00