0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-23 02:25:11 +00:00

[ie/facebook] Improve thumbnail extraction (#9060)

Authored by: kclauhk
This commit is contained in:
kclauhk 2024-01-29 02:41:56 +08:00 committed by GitHub
parent 5b68c478fb
commit 3c4d3ee491
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -682,6 +682,9 @@ def parse_attachment(attachment, key='media'):
# honor precise duration in video info # honor precise duration in video info
if video_info.get('duration'): if video_info.get('duration'):
webpage_info['duration'] = video_info['duration'] webpage_info['duration'] = video_info['duration']
# preserve preferred_thumbnail in video info
if video_info.get('thumbnail'):
webpage_info['thumbnail'] = video_info['thumbnail']
return merge_dicts(webpage_info, video_info) return merge_dicts(webpage_info, video_info)
if not video_data: if not video_data: