diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py index 6eaa22d894..bbdb143665 100644 --- a/youtube_dl/extractor/facebook.py +++ b/youtube_dl/extractor/facebook.py @@ -140,7 +140,7 @@ def _extract_url(webpage): # see https://developers.facebook.com/docs/plugins/embedded-video-player mobj = re.search(r'''(?x)]+ class=(?P[\'"])[^\'"]*\bfb-video\b[^\'"]*(?P=q1)[^>]+ - data-href=(?P[\'"])(?P[^\'"]+)(?P=q2)''', webpage) + data-href=(?P[\'"])(?P(?:https?:)?//(?:www\.)?facebook.com/.+?)(?P=q2)''', webpage) if mobj is not None: return mobj.group('url')