[facebook] proper support for watch videos(closes #22795)(#27062)
authorRemita Amine <remitamine@gmail.com>
Fri, 11 Dec 2020 15:05:47 +0000 (16:05 +0100)
committerRemita Amine <remitamine@gmail.com>
Fri, 11 Dec 2020 15:05:47 +0000 (16:05 +0100)
youtube_dl/extractor/facebook.py

index 6c360e29e96c93213461a543aa25565f0ecd655c..6ac3509902fdf7d3e40cc5368039cc36f5cb7417 100644 (file)
@@ -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