Browse Source

[facebook] Correct login (Fixes #2743)

totalwebcasting
Philipp Hagemeister 11 years ago
parent
commit
24b8924b46
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      youtube_dl/extractor/facebook.py

+ 1
- 2
youtube_dl/extractor/facebook.py View File

@ -76,9 +76,8 @@ class FacebookIE(InfoExtractor):
check_form = { check_form = {
'fb_dtsg': self._search_regex(r'name="fb_dtsg" value="(.+?)"', login_results, 'fb_dtsg'), 'fb_dtsg': self._search_regex(r'name="fb_dtsg" value="(.+?)"', login_results, 'fb_dtsg'),
'nh': self._search_regex(r'name="nh" value="(\w*?)"', login_results, 'nh'),
'h': self._search_regex(r'name="h" value="(\w*?)"', login_results, 'h'),
'name_action_selected': 'dont_save', 'name_action_selected': 'dont_save',
'submit[Continue]': self._search_regex(r'<button[^>]+value="(.*?)"[^>]+name="submit\[Continue\]"', login_results, 'continue'),
} }
check_req = compat_urllib_request.Request(self._CHECKPOINT_URL, urlencode_postdata(check_form)) check_req = compat_urllib_request.Request(self._CHECKPOINT_URL, urlencode_postdata(check_form))
check_req.add_header('Content-Type', 'application/x-www-form-urlencoded') check_req.add_header('Content-Type', 'application/x-www-form-urlencoded')


Loading…
Cancel
Save