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

xubuntu 12.04 from official repository: doesn't work #2522

Closed
unixman72 opened this issue Mar 7, 2014 · 1 comment
Closed

xubuntu 12.04 from official repository: doesn't work #2522

unixman72 opened this issue Mar 7, 2014 · 1 comment

Comments

@unixman72
Copy link

@unixman72 unixman72 commented Mar 7, 2014

unixman@malphas:/Videos$ python --version
Python 2.7.3
unixman@malphas:
/Videos$ youtube-dl -t "http://www.youtube.com/watch?feature=player_embedded&v=a4BKuH8mqw4"
[youtube] Setting language
[youtube] a4BKuH8mqw4: Downloading video webpage
[youtube] a4BKuH8mqw4: Downloading video info webpage
[youtube] a4BKuH8mqw4: Extracting video information
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 4645, in
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
url_map = dict((ud['itag'][0], ud['url'][0] + '&signature=' + ud['sig'][0]) for ud in url_data)
KeyError: 'sig'

@phihag
Copy link
Contributor

@phihag phihag commented Mar 7, 2014

There's little we can do about that, the version of youtube-dl in Ubuntu 12.04 is 2012.02.27. Since then, YouTube has significantly modified its API at least twice.

What you can do is use an up-to-date version of youtube-dl, either by typing sudo youtube-dl -U once to use our built-in updating mechanism, or by pinning youtube-dl to a more modern disitribution, or by installing youtube-dl by hand instead of via a package manager.

@phihag phihag closed this Mar 7, 2014
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.