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 'description' when IE cannot retrieve description #1277

Closed
phihag opened this issue Aug 19, 2013 · 1 comment
Closed

KeyError 'description' when IE cannot retrieve description #1277

phihag opened this issue Aug 19, 2013 · 1 comment
Labels
bug

Comments

@phihag
Copy link
Contributor

@phihag phihag commented Aug 19, 2013

youtube-dl --write-description http://www.dailymotion.com/video/xp0tg8_hjernevask-brainwashing-in-norway-english-part-1-the-gender-equality-paradox_news
[dailymotion] xp0tg8: Downloading webpage
[dailymotion] xp0tg8: Extracting information
[dailymotion] xp0tg8: Downloading embed page
[dailymotion] Using stream_h264_hq_url
[info] Writing video description to: Hjernevask ('Brainwashing') - English - Part 1 - The Gender Equality Paradox-xp0tg8.mp4.description
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 "/home/phihag/projects/youtube-dl/youtube_dl/__main__.py", line 18, in <module>
    youtube_dl.main()
  File "/home/phihag/projects/youtube-dl/youtube_dl/__init__.py", line 639, in main
    _real_main(argv)
  File "/home/phihag/projects/youtube-dl/youtube_dl/__init__.py", line 623, in _real_main
    retcode = ydl.download(all_urls)
  File "/home/phihag/projects/youtube-dl/youtube_dl/YoutubeDL.py", line 573, in download
    videos = self.extract_info(url)
  File "/home/phihag/projects/youtube-dl/youtube_dl/YoutubeDL.py", line 327, in extract_info
    return self.process_ie_result(ie_result, download=download)
  File "/home/phihag/projects/youtube-dl/youtube_dl/YoutubeDL.py", line 410, in process_ie_result
    for r in ie_result['entries']
  File "/home/phihag/projects/youtube-dl/youtube_dl/YoutubeDL.py", line 357, in process_ie_result
    self.process_info(ie_result)
  File "/home/phihag/projects/youtube-dl/youtube_dl/YoutubeDL.py", line 481, in process_info
    descfile.write(info_dict['description'])
KeyError: 'description
jaimeMF added a commit that referenced this issue Sep 13, 2013
Fixed issue #1277 KeyError when no description.
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 13, 2013

Fixed by @Jaiz909 in #1350

@jaimeMF jaimeMF closed this Sep 13, 2013
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.