1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-30 14:42:58 +01:00

[facebook] proper support for watch videos(closes #22795)(#27062)

This commit is contained in:
Remita Amine 2020-12-11 16:05:47 +01:00
parent ad5e5788ff
commit 432c6b0f48

View File

@ -41,7 +41,8 @@ class FacebookIE(InfoExtractor):
photo\.php| photo\.php|
video\.php| video\.php|
video/embed| video/embed|
story\.php story\.php|
watch/?
)\?(?:.*?)(?:v|video_id|story_fbid)=| )\?(?:.*?)(?:v|video_id|story_fbid)=|
[^/]+/videos/(?:[^/]+/)?| [^/]+/videos/(?:[^/]+/)?|
[^/]+/posts/| [^/]+/posts/|
@ -239,6 +240,10 @@ class FacebookIE(InfoExtractor):
'id': '106560053808006', 'id': '106560053808006',
}, },
'playlist_count': 2, 'playlist_count': 2,
}, {
# data.video.story.attachments[].media
'url': 'https://www.facebook.com/watch/?v=647537299265662',
'only_matching': True,
}] }]
@staticmethod @staticmethod