diff options
author | Remita Amine <remitamine@gmail.com> | 2018-07-23 06:20:00 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2018-07-23 06:20:18 +0100 |
commit | 631f93ee2d5dfe5a90da38d293159670ada4d95e (patch) | |
tree | 6b50f54286593fd4cb88a978510f96e431bbe539 /youtube_dl | |
parent | d4e7065111b1c18bc47795b102a4e5c6757e9bad (diff) |
[facebook] fix tahoe request for authenticated users(closes #16655)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/facebook.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py index f78479b92..97cfe0fc3 100644 --- a/youtube_dl/extractor/facebook.py +++ b/youtube_dl/extractor/facebook.py @@ -355,7 +355,6 @@ class FacebookIE(InfoExtractor): tahoe_data = self._download_webpage( self._VIDEO_PAGE_TAHOE_TEMPLATE % video_id, video_id, data=urlencode_postdata({ - '__user': 0, '__a': 1, '__pc': self._search_regex( r'pkg_cohort["\']\s*:\s*["\'](.+?)["\']', webpage, @@ -363,6 +362,9 @@ class FacebookIE(InfoExtractor): '__rev': self._search_regex( r'client_revision["\']\s*:\s*(\d+),', webpage, 'client revision', default='3944515'), + 'fb_dtsg': self._search_regex( + r'"DTSGInitialData"\s*,\s*\[\]\s*,\s*{\s*"token"\s*:\s*"([^"]+)"', + webpage, 'dtsg token', default=''), }), headers={ 'Content-Type': 'application/x-www-form-urlencoded', |