Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'sig' #2496

Closed
mbnoimi opened this issue Mar 2, 2014 · 2 comments
Closed

KeyError: 'sig' #2496

mbnoimi opened this issue Mar 2, 2014 · 2 comments

Comments

@mbnoimi
Copy link

@mbnoimi mbnoimi commented Mar 2, 2014

Whenever I called youtube-dl I got the following error (I'm using Ubuntu 12.04 LTS x64):

user@myserver:~/TEST/mbuser$ youtube-dl -ct https://www.youtube.com/watch?v=qDH7zWYaScA&feature=em-uploademail
[1] 2375
user@myserver:~/TEST/mbuser$ [youtube] Setting language
[youtube] qDH7zWYaScA: Downloading video webpage
[youtube] qDH7zWYaScA: Downloading video info webpage
[youtube] qDH7zWYaScA: 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'
^C
[1]+  Exit 1                  youtube-dl -ct https://www.youtube.com/watch?v=qDH7zWYaScA
user@myserver:~/TEST/mbuser$ youtube-dl --version
2012.02.27
user@myserver:~/TEST/mbuser$
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Mar 2, 2014

Update to a more recent version using sudo youtube-dl -U or your package manager, you are running a really outdated version (two year old).
By the way, you have to enclose the url if it contains &: youtube-dl 'https://www.youtube.com/watch?v=qDH7zWYaScA&feature=em-uploademail', otherwise it will run on the background

@jaimeMF jaimeMF closed this Mar 2, 2014
@mbnoimi
Copy link
Author

@mbnoimi mbnoimi commented Mar 2, 2014

Thanks a lot it works perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.