1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-16 22:45:15 +00:00

[ie/imgur] Fix thumbnail extraction (#11298)

Authored by: seproDev
This commit is contained in:
sepro
2024-10-20 23:18:11 +02:00
committed by GitHub
parent c4d95f67dd
commit 87408ccfd7

View File

@@ -225,7 +225,10 @@ class ImgurIE(ImgurBaseIE):
}), get_all=False), }), get_all=False),
'id': video_id, 'id': video_id,
'formats': formats, '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': '*/*'}, 'http_headers': {'Accept': '*/*'},
} }