aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-04-21 15:56:09 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-04-21 15:56:09 +0200
commit24b8924b469bd1b75bcad82eec3823ad79472610 (patch)
treeb4ccbf3a64981b1ce0bbe24eeeee0f55a6e797f7 /youtube_dl
parent86a3c67112355e1776d0486eb7681986378781eb (diff)
[facebook] Correct login (Fixes #2743)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/facebook.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py
index a713628b2..f0cd8f156 100644
--- a/youtube_dl/extractor/facebook.py
+++ b/youtube_dl/extractor/facebook.py
@@ -76,9 +76,8 @@ class FacebookIE(InfoExtractor):
check_form = {
'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',
- '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.add_header('Content-Type', 'application/x-www-form-urlencoded')