diff options
author | Remita Amine <remitamine@gmail.com> | 2020-12-10 15:19:43 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2020-12-10 15:19:43 +0100 |
commit | 5c6e9f0b6c643ca9f5b95dba4cb2f44960ddd83e (patch) | |
tree | 6ac84c6cadc9a6643aab8c353ecc8e9745e5a73e | |
parent | 6c370bc149945e26c6e359147221b3aa96e0ea75 (diff) |
[facebook] redirect Mobile URLs to Desktop URLs
closes #24831
closes #25624
-rw-r--r-- | youtube_dl/extractor/facebook.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py index f1a90362f..27a57ad03 100644 --- a/youtube_dl/extractor/facebook.py +++ b/youtube_dl/extractor/facebook.py @@ -306,7 +306,8 @@ class FacebookIE(InfoExtractor): self._login() def _extract_from_url(self, url, video_id, fatal_if_no_video=True): - webpage = self._download_webpage(url, video_id) + webpage = self._download_webpage( + url.replace('://m.facebook.com/', '://www.facebook.com/'), video_id) video_data = None |