aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsepro <sepro@sepr0.com>2024-10-20 23:18:11 +0200
committerGitHub <noreply@github.com>2024-10-20 23:18:11 +0200
commit87408ccfd772ddf31a8323d8151c24f9577cbc9f (patch)
tree9644f6b6c0b27e63580591f82e51575239150e1a
parentc4d95f67ddc522297bb1fea875255cf94b34d595 (diff)
[ie/imgur] Fix thumbnail extraction (#11298)
Authored by: seproDev
-rw-r--r--yt_dlp/extractor/imgur.py5
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': '*/*'},
}