[Trisquel-devel] Packaged YouTube ALL HTML5

Andrew Lindley leny2010 at member.fsf.org
Thu Apr 10 19:15:23 CEST 2014


From: Rubén Rodríguez <ruben at gnu.org>
Subject: [Trisquel-devel] Packaged YouTube ALL HTML5
Date: Thu, 03 Apr 2014 03:07:33 +0200

> I've packaged
> https://addons.mozilla.org/en-US/firefox/addon/youtube-all-html5/
> as xul-ext-youtube-all-html5 in toutatis. Allows for videos at
> youtube.com to play without flash in abrowser.
>
> Note that it only works on youtube.com, not with embedded videos.
>
> Please test and comment. If it works well it will become a preinstalled
> package.
>
> Also I backported the latest versions of minitube and youtube-dl into
> toutatis, please test as well.

 The extension is going fine.  However, neither it nor VLC would play
 the audio in one video so I decided to try to download the video with
 the latest youtube-dl in the repo to see if it was the video itself.
 It seems it has this bug:

https://github.com/rg3/youtube-dl/issues/897

As exampled by this log

Script started on Thu 10 Apr 2014 17:31:24 BST
leny2010 at coffee:~$ youtube-dl -f 43 http://www.youtube.com/watch?v=t1TcDHrkQYg&feature=share&list=RDHCIUIBXtM8eWY&index=7
[1] 2839
[2] 2840
[3] 2841
[youtube] Setting language
[youtube] t1TcDHrkQYg: Downloading video webpage
[youtube] t1TcDHrkQYg: Downloading video info webpage
[youtube] t1TcDHrkQYg: Extracting video information
Traceback (most recent call last):
  File "/usr/bin/youtube-dl", line 4645, in <module>
    main()
  File "/usr/bin/youtube-dl", line 4636, in main
    _real_main()
  File "/usr/bin/youtube-dl", line 4620, in _real_main
    retcode = fd.download(all_urls)
  File "/usr/bin/youtube-dl", line 869, in download
    ie.extract(url)
  File "/usr/bin/youtube-dl", line 1135, in extract
    return self._real_extract(url)
  File "/usr/bin/youtube-dl", line 1406, in _real_extract
    url_map = dict((ud['itag'][0], ud['url'][0] + '&signature=' + ud['sig'][0]) for ud in url_data)
  File "/usr/bin/youtube-dl", line 1406, in <genexpr>
    url_map = dict((ud['itag'][0], ud['url'][0] + '&signature=' + ud['sig'][0]) for ud in url_data)
KeyError: 'sig'

[1]   Exit 1                  youtube-dl -f 43 http://www.youtube.com/watch?v=t1TcDHrkQYg
[2]-  Done                    feature=share
[3]+  Done                    list=RDHCIUIBXtM8eWY
leny2010 at coffee:~$ exit

Script done on Thu 10 Apr 2014 17:31:49 BST

So I did what the user has had to do with youtube-dl for a while now
and issued

sudo youtube-dl -U

twice, the second time pulls the latest from their git repo

And discovered the video is broken.  Still youtube-dl from the repo is
not working with VEVO videos as per above.

Leny


More information about the Trisquel-devel mailing list