1

I installed youtube-dl and executing the command it shows:

[youtube] Setting language
[youtube] _gp51lt9kdA: Downloading video webpage
[youtube] _gp51lt9kdA: Downloading video info webpage
[youtube] _gp51lt9kdA: 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'
sigdelsanjog
  • 7,280
user313911
  • 11
  • 3

1 Answers1

1

Update youtube-dl by adding this PPA

sudo add-apt-repository ppa:nilarimogard/webupd8

sudo apt-get update

sudo apt-get install youtube-dl

Then you may download any video as usual. For example ::

sudo youtube-dl https://www.youtube.com/watch?v=Ix1rD4JD3eo
Sathyam
  • 243