diff options
author | sepro <sepro@sepr0.com> | 2024-10-20 23:18:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-20 23:18:11 +0200 |
commit | 87408ccfd772ddf31a8323d8151c24f9577cbc9f (patch) | |
tree | 9644f6b6c0b27e63580591f82e51575239150e1a | |
parent | c4d95f67ddc522297bb1fea875255cf94b34d595 (diff) |
[ie/imgur] Fix thumbnail extraction (#11298)
Authored by: seproDev
-rw-r--r-- | yt_dlp/extractor/imgur.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/imgur.py b/yt_dlp/extractor/imgur.py index 2a5a1c9e8..e2644e6a4 100644 --- a/yt_dlp/extractor/imgur.py +++ b/yt_dlp/extractor/imgur.py @@ -225,7 +225,10 @@ class ImgurIE(ImgurBaseIE): }), get_all=False), 'id': video_id, 'formats': formats, - 'thumbnail': url_or_none(search('thumbnailUrl')), + 'thumbnails': [{ + 'url': thumbnail_url, + 'http_headers': {'Accept': '*/*'}, + }] if (thumbnail_url := search(['thumbnailUrl', 'twitter:image', 'og:image'])) else None, 'http_headers': {'Accept': '*/*'}, } |