From 3c4d3ee491b0ec22ed3cade51d943d3d27141ba7 Mon Sep 17 00:00:00 2001 From: kclauhk <78251477+kclauhk@users.noreply.github.com> Date: Mon, 29 Jan 2024 02:41:56 +0800 Subject: [PATCH] [ie/facebook] Improve thumbnail extraction (#9060) Authored by: kclauhk --- yt_dlp/extractor/facebook.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yt_dlp/extractor/facebook.py b/yt_dlp/extractor/facebook.py index 84856abe1..2fbdf1c37 100644 --- a/yt_dlp/extractor/facebook.py +++ b/yt_dlp/extractor/facebook.py @@ -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: