logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: 5c6e9f0b6c643ca9f5b95dba4cb2f44960ddd83e
parent 6c370bc149945e26c6e359147221b3aa96e0ea75
Author: Remita Amine <remitamine@gmail.com>
Date:   Thu, 10 Dec 2020 15:19:43 +0100

[facebook] redirect Mobile URLs to Desktop URLs

closes #24831
closes #25624

Diffstat:

Myoutube_dl/extractor/facebook.py3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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