mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-05 09:57:59 +09:00
[facebook] Fix login detection (#2505)
This commit is contained in:
parent
cb3bb2cfef
commit
b37b94501c
@ -54,7 +54,9 @@ class FacebookIE(InfoExtractor):
|
|||||||
self.report_login()
|
self.report_login()
|
||||||
login_page = self._download_webpage(login_page_req, None, note=False,
|
login_page = self._download_webpage(login_page_req, None, note=False,
|
||||||
errnote='Unable to download login page')
|
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')
|
lgnrnd = self._search_regex(r'name="lgnrnd" value="([^"]*?)"', login_page, 'lgnrnd')
|
||||||
|
|
||||||
login_form = {
|
login_form = {
|
||||||
|
Loading…
Reference in New Issue
Block a user