From 3a0bdc145607baf7caa7920267775dccceed211e Mon Sep 17 00:00:00 2001 From: Remita Amine Date: Fri, 26 Feb 2021 14:54:28 +0100 Subject: [PATCH] [facebook] proper support for watch videos(closes #22795)(#27062) --- haruhi_dl/extractor/facebook.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/haruhi_dl/extractor/facebook.py b/haruhi_dl/extractor/facebook.py index 2c3e4b251..c16453776 100644 --- a/haruhi_dl/extractor/facebook.py +++ b/haruhi_dl/extractor/facebook.py @@ -41,7 +41,8 @@ class FacebookIE(InfoExtractor): photo\.php| video\.php| video/embed| - story\.php + story\.php| + watch/? )\?(?:.*?)(?:v|video_id|story_fbid)=| [^/]+/videos/(?:[^/]+/)?| [^/]+/posts/| @@ -239,6 +240,10 @@ class FacebookIE(InfoExtractor): 'id': '106560053808006', }, 'playlist_count': 2, + }, { + # data.video.story.attachments[].media + 'url': 'https://www.facebook.com/watch/?v=647537299265662', + 'only_matching': True, }] @staticmethod