diff options
| author | Remita Amine <remitamine@gmail.com> | 2020-12-11 16:05:47 +0100 | 
|---|---|---|
| committer | Remita Amine <remitamine@gmail.com> | 2020-12-11 16:05:47 +0100 | 
| commit | 432c6b0f487d7bcd92cbd5b79b0540a6fb41a83f (patch) | |
| tree | 99b4a640c306b10f85ec12a2c407af432ad40094 | |
| parent | ad5e5788ff59fbc37beb417e1371f40a6365e956 (diff) | |
[facebook] proper support for watch videos(closes #22795)(#27062)
| -rw-r--r-- | youtube_dl/extractor/facebook.py | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py index 6c360e29e..6ac350990 100644 --- a/youtube_dl/extractor/facebook.py +++ b/youtube_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 | 
