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

Authored by: seproDev
pull/11196/head
sepro 2 months ago committed by GitHub
parent c4d95f67dd
commit 87408ccfd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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': '*/*'},
}

Loading…
Cancel
Save