Browse Source

[facebook] Fix login detection (#2505)

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

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

@ -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 = {


Loading…
Cancel
Save