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

Authored by: kclauhk
pull/9098/head
kclauhk 4 months ago committed by GitHub
parent 5b68c478fb
commit 3c4d3ee491
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -682,6 +682,9 @@ class FacebookIE(InfoExtractor):
# honor precise duration in video info
if video_info.get('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)
if not video_data:

Loading…
Cancel
Save