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 Error: Unable to extract h; #3667

Closed
lcguida opened this issue Sep 2, 2014 · 2 comments
Closed

Facebook Error: Unable to extract h; #3667

lcguida opened this issue Sep 2, 2014 · 2 comments

Comments

@lcguida
Copy link

@lcguida lcguida commented Sep 2, 2014

When I Try to download a private group video (in which I participate), I'm getting the following error:

(Output with --verbose):

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['https://www.facebook.com/video.php?v=4638709981591', '--username', '<PRIVATE>', '--password', '<PRIVATE>', '--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.09.01.2
[debug] Python version 2.7.6 - Linux-3.13.0-32-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] Proxy map: {}
[facebook] Downloading login page
[facebook] Logging in
ERROR: Unable to extract h; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 521, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 177, in extract
    self.initialize()
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 172, in initialize
    self._real_initialize()
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/facebook.py", line 96, in _real_initialize
    self._login()
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/facebook.py", line 82, in _login
    'h': self._search_regex(r'name="h" value="(\w*?)"', login_results, 'h'),
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 399, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract h; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.

@phihag phihag closed this in 7d4d5f2 Sep 3, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Sep 3, 2014

Thank you for the report. This bug has been fixed in youtube-dl 2014.09.04. Type sudo youtube-dl -U to update.

@lcguida
Copy link
Author

@lcguida lcguida commented Sep 4, 2014

Yeah. I saw it. Already updated and it's working. Thanks =)

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.