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

_map_to_format_list KeyError #2220

Closed
KingSasquatch opened this issue Jan 23, 2014 · 3 comments
Closed

_map_to_format_list KeyError #2220

KingSasquatch opened this issue Jan 23, 2014 · 3 comments
Labels
bug

Comments

@KingSasquatch
Copy link

@KingSasquatch KingSasquatch commented Jan 23, 2014

Hey all, great work with youtube-dl!

I hoping you can help with a problem I'm seeing. It looks like YouTube introduced a new format "218". Just my un-educated guess. Sorry if this is a duplicate report.

eric@camaro:~/Development/youtube-dl$ ./youtube-dl -v 'http://www.youtube.com/watch?v=rYEDA3JcQqw'
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.youtube.com/watch?v=rYEDA3JcQqw']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.01.23.2
[debug] Python version 2.7.3 - Linux-3.5.0-45-generic-x86_64-with-Ubuntu-12.10-quantal
[debug] Proxy map: {}
[youtube] Setting language
[youtube] rYEDA3JcQqw: Downloading webpage
[youtube] rYEDA3JcQqw: Downloading video info webpage
[youtube] rYEDA3JcQqw: Extracting video information
[youtube] rYEDA3JcQqw: Encrypted signatures detected.
[youtube] encrypted signature length 86 (45.40), itag 22, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 43, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 18, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 5, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 36, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 17, html5 player vflbxes4n
[youtube] encrypted signature length 91 (47.43), itag 137, html5 player vflbxes4n
[youtube] rYEDA3JcQqw: Downloading js player vflbxes4n
[youtube] encrypted signature length 91 (47.43), itag 170, html5 player vflbxes4n
[youtube] encrypted signature length 91 (47.43), itag 136, html5 player vflbxes4n
[youtube] encrypted signature length 91 (47.43), itag 169, html5 player vflbxes4n
[youtube] encrypted signature length 91 (47.43), itag 135, html5 player vflbxes4n
[youtube] encrypted signature length 91 (47.43), itag 168, html5 player vflbxes4n
[youtube] encrypted signature length 91 (47.43), itag 218, html5 player vflbxes4n
[youtube] encrypted signature length 91 (47.43), itag 219, html5 player vflbxes4n
[youtube] encrypted signature length 91 (47.43), itag 134, html5 player vflbxes4n
[youtube] encrypted signature length 91 (47.43), itag 167, html5 player vflbxes4n
[youtube] encrypted signature length 91 (47.43), itag 133, html5 player vflbxes4n
[youtube] encrypted signature length 91 (47.43), itag 160, html5 player vflbxes4n
[youtube] encrypted signature length 91 (47.43), itag 139, html5 player vflbxes4n
[youtube] encrypted signature length 91 (47.43), itag 140, html5 player vflbxes4n
[youtube] encrypted signature length 91 (47.43), itag 171, html5 player vflbxes4n
[youtube] encrypted signature length 91 (47.43), itag 172, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 137, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 170, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 136, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 169, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 135, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 168, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 218, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 219, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 134, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 167, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 133, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 160, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 139, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 140, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 171, html5 player vflbxes4n
[youtube] encrypted signature length 86 (45.40), itag 172, html5 player vflbxes4n
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "./youtube-dl/main.py", line 18, in
File "./youtube-dl/youtube_dl/init.py", line 782, in main

File "./youtube-dl/youtube_dl/init.py", line 772, in _real_main

File "./youtube-dl/youtube_dl/YoutubeDL.py", line 982, in download
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 493, in extract_info
File "./youtube-dl/youtube_dl/extractor/common.py", line 157, in extract
File "./youtube-dl/youtube_dl/extractor/youtube.py", line 1349, in _real_extract
File "./youtube-dl/youtube_dl/extractor/youtube.py", line 1293, in _map_to_format_list
KeyError: u'218'

@xanadu
Copy link
Contributor

@xanadu xanadu commented Jan 23, 2014

Nice find, seems there are 6 new itags
167 video/webm; codecs="vp8" 783684 640x360
168 video/webm; codecs="vp8" 1338482 854x480
169 video/webm; codecs="vp8" 2758965 1280x720
170 video/webm; codecs="vp8" 5664764 1920x1080
218 video/webm; codecs="vp8" 1754542 854x480
219 video/webm; codecs="vp8" 2205428 854x480

@phihag
Copy link
Contributor

@phihag phihag commented Jan 23, 2014

Thanks for the report. This error has been fixed, as well as support for the new itags added, in youtube-dl 2014.01.23.3. Type ./youtube-dl -U to update.

@phihag phihag closed this Jan 23, 2014
@KingSasquatch
Copy link
Author

@KingSasquatch KingSasquatch commented Jan 24, 2014

Awesome! Thank you!

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
3 participants
You can’t perform that action at this time.