aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-09-03 09:49:05 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-09-03 09:50:10 +0200
commit7d4d5f25edb607371bb53c3b9bd8ed805c6fb0f6 (patch)
treeda1f2d3224da6dcd3723e2c7dedbe2639f7bc8fd
parent33422c056db136de73c82a42bd703a21bd34e23f (diff)
[facebook] Fix login (Fixes #3667)
-rw-r--r--youtube_dl/extractor/facebook.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py
index 574a86390..afb34ce51 100644
--- a/youtube_dl/extractor/facebook.py
+++ b/youtube_dl/extractor/facebook.py
@@ -79,7 +79,8 @@ class FacebookIE(InfoExtractor):
check_form = {
'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',
}
check_req = compat_urllib_request.Request(self._CHECKPOINT_URL, urlencode_postdata(check_form))