aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-03-04 03:39:04 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-03-04 03:39:04 +0100
commitb37b94501ccd02874cfe800e42b56ade63947d5f (patch)
treee3003c684ec631819b5f512fbb453584c8b0d445
parentcb3bb2cfefd928f73d971487d8782474e1576073 (diff)
[facebook] Fix login detection (#2505)
-rw-r--r--youtube_dl/extractor/facebook.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py
index 1f58d2e62..8147800d2 100644
--- a/youtube_dl/extractor/facebook.py
+++ b/youtube_dl/extractor/facebook.py
@@ -54,7 +54,9 @@ class FacebookIE(InfoExtractor):
self.report_login()
login_page = self._download_webpage(login_page_req, None, note=False,
errnote='Unable to download login page')
- lsd = self._search_regex(r'"lsd":"(\w*?)"', login_page, 'lsd')
+ lsd = self._search_regex(
+ r'<input type="hidden" name="lsd" value="([^""]*)"',
+ login_page, 'lsd')
lgnrnd = self._search_regex(r'name="lgnrnd" value="([^"]*?)"', login_page, 'lgnrnd')
login_form = {