aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkmal <72781956+Wikidepia@users.noreply.github.com>2024-01-19 06:40:08 +0700
committerGitHub <noreply@github.com>2024-01-19 00:40:08 +0100
commitcf9af2c7f1fedd881a157b3fbe725e5494b00924 (patch)
tree00a14eaf12797b7934d9e7acb1fed7916c29681f
parentcf6413e840476c15e5b166dc2f7cc2a90a4a9aad (diff)
[ie/Facebook] Add new ID format (#3824)
Closes #3496 Authored by: Wikidepia, kclauhk Co-authored-by: kclauhk <78251477+kclauhk@users.noreply.github.com>
-rw-r--r--yt_dlp/extractor/facebook.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/yt_dlp/extractor/facebook.py b/yt_dlp/extractor/facebook.py
index a07a0d344..a16a067ab 100644
--- a/yt_dlp/extractor/facebook.py
+++ b/yt_dlp/extractor/facebook.py
@@ -57,7 +57,7 @@ class FacebookIE(InfoExtractor):
)|
facebook:
)
- (?P<id>[0-9]+)
+ (?P<id>pfbid[A-Za-z0-9]+|\d+)
'''
_EMBED_REGEX = [
r'<iframe[^>]+?src=(["\'])(?P<url>https?://www\.facebook\.com/(?:video/embed|plugins/video\.php).+?)\1',
@@ -248,6 +248,24 @@ class FacebookIE(InfoExtractor):
'duration': 148.435,
},
}, {
+ 'url': 'https://www.facebook.com/attn/posts/pfbid0j1Czf2gGDVqeQ8KiMLFm3pWN8GxsQmeRrVhimWDzMuKQoR8r4b1knNsejELmUgyhl',
+ 'info_dict': {
+ 'id': '6968553779868435',
+ 'ext': 'mp4',
+ 'description': 'md5:2f2fcf93e97ac00244fe64521bbdb0cb',
+ 'uploader': 'ATTN:',
+ 'upload_date': '20231207',
+ 'title': 'ATTN:',
+ 'duration': 132.675,
+ 'uploader_id': '100064451419378',
+ 'view_count': int,
+ 'thumbnail': r're:^https?://.*',
+ 'timestamp': 1701975646,
+ },
+ }, {
+ 'url': 'https://www.facebook.com/story.php?story_fbid=pfbid0Fnzhm8UuzjBYpPMNFzaSpFE9UmLdU4fJN8qTANi1Dmtj5q7DNrL5NERXfsAzDEV7l&id=100073071055552',
+ 'only_matching': True,
+ }, {
'url': 'https://www.facebook.com/video.php?v=10204634152394104',
'only_matching': True,
}, {