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

[facebook] Video download broken - "KeyError: u'video_duration'" #4457

Closed
barsnick opened this issue Dec 12, 2014 · 1 comment
Closed

[facebook] Video download broken - "KeyError: u'video_duration'" #4457

barsnick opened this issue Dec 12, 2014 · 1 comment

Comments

@barsnick
Copy link

@barsnick barsnick commented Dec 12, 2014

Hi,
this started happening today (or recently) with any video from Facebook:

[barsnick@goodtimes Downloads]$ youtube-dl --verbose 'https://www.facebook.com/video.php?v=10152703858427713'
[debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Command-line args: ['--verbose', 'https://www.facebook.com/video.php?v=10152703858427713']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.11.13
[debug] Python version 2.7.5 - Linux-3.17.4-200.fc20.x86_64-x86_64-with-fedora-20-Heisenbug
[debug] exe versions: ffmpeg 2.1.6, ffprobe 2.1.6, rtmpdump 2.4
[debug] Proxy map: {}
[facebook] 10152703858427713: Downloading webpage
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/bin/youtube-dl/__main__.py", line 18, in <module>
  File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 351, in main
  File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 341, in _real_main
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1094, in download
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 536, in extract_info
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 199, in extract
  File "/usr/bin/youtube-dl/youtube_dl/extractor/facebook.py", line 152, in _real_extract
KeyError: u'video_duration'

On the very day my Flash plugin started being blocked by Firefox. ;-)

@phihag
Copy link
Contributor

@phihag phihag commented Dec 13, 2014

You are using an outdated version of youtube-dl. Since Facebook changed their interface on December 9th, you'll need at least youtube-dl 2014.12.10.3 to download all Facebook videos. See our FAQ if you have trouble updating.

@phihag phihag closed this Dec 13, 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.