Browse Source

[facebook] Fix login (Fixes #3667)

totalwebcasting
Philipp Hagemeister 10 years ago
parent
commit
7d4d5f25ed
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/facebook.py

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

@ -79,7 +79,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'),
'h': self._search_regex(r'name="h" value="(\w*?)"', login_results, 'h'),
'h': self._search_regex(
r'name="h"\s+(?:\w+="[^"]+"\s+)*?value="([^"]+)"', login_results, 'h'),
'name_action_selected': 'dont_save', 'name_action_selected': 'dont_save',
} }
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))


Loading…
Cancel
Save