Skip to content

Commit

Permalink
[ie/imgur] Fix thumbnail extraction (yt-dlp#11298)
Browse files Browse the repository at this point in the history
Authored by: seproDev
  • Loading branch information
seproDev authored Oct 20, 2024
1 parent c4d95f6 commit 87408cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion yt_dlp/extractor/imgur.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,10 @@ def og_get_size(media_type):
}), 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': '*/*'},
}

Expand Down

0 comments on commit 87408cc

Please sign in to comment.