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 Exception when retrieving Yahoo video #3043

Closed
jillh510 opened this issue Jun 3, 2014 · 2 comments
Closed

KeyError Exception when retrieving Yahoo video #3043

jillh510 opened this issue Jun 3, 2014 · 2 comments
Labels
bug

Comments

@jillh510
Copy link

@jillh510 jillh510 commented Jun 3, 2014

KeyError exception when retrieving http://news.yahoo.com/video/crisis-nigeria-120000691.html:

python -m youtube_dl --dump-json --skip-download -v http://news.yahoo.com/video/crisis-nigeria-120000691.html
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--dump-json', '--skip-download', '-v', 'http://news.yahoo.com/video/crisis-nigeria-120000691.html']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.06.02
[debug] Python version 2.7.5 - Darwin-13.2.0-x86_64-i386-64bit
[debug] Proxy map: {}
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/main.py", line 18, in
youtube_dl.main()
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/init.py", line 850, in main
_real_main(argv)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/init.py", line 840, in _real_main
retcode = ydl.download(all_urls)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1039, in download
self.extract_info(url)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 516, in extract_info
ie_result = ie.extract(url)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 163, in extract
return self._real_extract(url)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/extractor/yahoo.py", line 140, in _real_extract
return self._get_info(long_id, video_id)
File "/Users/jill/june/.virtualenv/lib/python2.7/site-packages/youtube_dl/extractor/yahoo.py", line 116, in _get_info
'thumbnail': meta['thumbnail'],
KeyError: u'thumbnail'

@jaimeMF jaimeMF added the bug label Jun 3, 2014
@dstftw dstftw closed this in 6340716 Jun 4, 2014
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 4, 2014

Thanks for the report, fixed and will be available in the next release of youtube-dl.

@phihag
Copy link
Contributor

@phihag phihag commented Jun 7, 2014

Thank you for the report. This bug has been fixed in youtube-dl 2014.06.07. Type pip install -U youtube-dl to update.

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