about summary refs log tree commit diff
path: root/youtube_dl/extractor/facebook.py
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2020-12-09 23:52:25 +0100
committerRemita Amine <remitamine@gmail.com>2020-12-09 23:54:15 +0100
commitaee1f871681af7d6cbd26e33f9fe3e63f742167f (patch)
tree5c3c792a6733a81d46a64977e34c6b51867eb85d /youtube_dl/extractor/facebook.py
parentb69bb1ed119d07b83cf88ca95b87773209f14d3b (diff)
downloadyoutube-dl-aee1f871681af7d6cbd26e33f9fe3e63f742167f.tar.gz
youtube-dl-aee1f871681af7d6cbd26e33f9fe3e63f742167f.tar.xz
youtube-dl-aee1f871681af7d6cbd26e33f9fe3e63f742167f.zip
[facebook] remove hardcoded chrome user-agent
closes #18974
closes #25411
closes #26958
closes #27329
Diffstat (limited to 'youtube_dl/extractor/facebook.py')
-rw-r--r--youtube_dl/extractor/facebook.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py
index 610d66745..7459fde34 100644
--- a/youtube_dl/extractor/facebook.py
+++ b/youtube_dl/extractor/facebook.py
@@ -54,8 +54,6 @@ class FacebookIE(InfoExtractor):
     _NETRC_MACHINE = 'facebook'
     IE_NAME = 'facebook'
 
-    _CHROME_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.97 Safari/537.36'
-
     _VIDEO_PAGE_TEMPLATE = 'https://www.facebook.com/video/video.php?v=%s'
     _VIDEO_PAGE_TAHOE_TEMPLATE = 'https://www.facebook.com/video/tahoe/async/%s/?chain=true&isvideo=true&payloadtype=primary'
 
@@ -306,9 +304,7 @@ class FacebookIE(InfoExtractor):
         self._login()
 
     def _extract_from_url(self, url, video_id, fatal_if_no_video=True):
-        req = sanitized_Request(url)
-        req.add_header('User-Agent', self._CHROME_USER_AGENT)
-        webpage = self._download_webpage(req, video_id)
+        webpage = self._download_webpage(url, video_id)
 
         video_data = None