diff options
author | Akmal <72781956+Wikidepia@users.noreply.github.com> | 2022-04-13 08:21:23 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 18:21:23 -0700 |
commit | cda1bc51973c89b72b916dcc40dbe3d7f457097d (patch) | |
tree | a1c46a8502021ecf8b64b2db1fb5d31acfb809f2 | |
parent | 743f39750cccf53bc320e057a6ed05e301e8ed48 (diff) | |
download | hypervideo-pre-cda1bc51973c89b72b916dcc40dbe3d7f457097d.tar.lz hypervideo-pre-cda1bc51973c89b72b916dcc40dbe3d7f457097d.tar.xz hypervideo-pre-cda1bc51973c89b72b916dcc40dbe3d7f457097d.zip |
[facebook] Improve thumbnail extraction (#3392)
Authored by: Wikidepia
-rw-r--r-- | yt_dlp/extractor/facebook.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/extractor/facebook.py b/yt_dlp/extractor/facebook.py index 2e69dce0f..f15a36424 100644 --- a/yt_dlp/extractor/facebook.py +++ b/yt_dlp/extractor/facebook.py @@ -525,7 +525,8 @@ class FacebookIE(InfoExtractor): info = { 'id': v_id, 'formats': formats, - 'thumbnail': try_get(video, lambda x: x['thumbnailImage']['uri']), + 'thumbnail': traverse_obj( + video, ('thumbnailImage', 'uri'), ('preferred_thumbnail', 'image', 'uri')), 'uploader_id': try_get(video, lambda x: x['owner']['id']), 'timestamp': int_or_none(video.get('publish_time')), 'duration': float_or_none(video.get('playable_duration_in_ms'), 1000), |