Compare commits

..

3 Commits

Author SHA1 Message Date
kclauhk
771026fbda
Update facebook.py 2023-12-23 00:55:32 +08:00
kclauhk
92c32669ab
Update yt_dlp/extractor/facebook.py
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
2023-12-23 00:31:28 +08:00
kclauhk
d0b715be07
Update yt_dlp/extractor/facebook.py
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
2023-12-23 00:31:07 +08:00

View File

@ -612,10 +612,11 @@ class FacebookIE(InfoExtractor):
nodes = variadic(traverse_obj(data, 'nodes', 'node') or [])
attachments = traverse_obj(nodes, (
..., 'comet_sections', 'content', 'story', (None, 'attached_story'), 'attachments',
..., ('styles', 'throwbackStyles', 'style_type_renderer'), (None, ...), 'attachment'), expected_type=dict) or []
..., ('styles', 'style_type_renderer', ('throwbackStyles', 'attachment_target_renderer')),
'attachment'), expected_type=dict) or []
for attachment in attachments:
ns = traverse_obj(attachment, ('all_subattachments', 'nodes', ..., {dict}),
(..., 'attachments', ..., 'styles', 'attachment', {dict}))
('target', 'attachments', ..., 'styles', 'attachment', {dict}))
for n in ns:
parse_attachment(n)
parse_attachment(attachment)