diff options
author | kclauhk <78251477+kclauhk@users.noreply.github.com> | 2024-01-29 02:41:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-28 18:41:56 +0000 |
commit | 3c4d3ee491b0ec22ed3cade51d943d3d27141ba7 (patch) | |
tree | e82854b4a03c28bdfbdc6812e8a945870802e623 | |
parent | 5b68c478fb0b93ea6b8fac23f50e12217fa063db (diff) |
[ie/facebook] Improve thumbnail extraction (#9060)
Authored by: kclauhk
-rw-r--r-- | yt_dlp/extractor/facebook.py | 3 |
1 files changed, 3 insertions, 0 deletions
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: |