diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 1130d10fa5..168103377d 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -2057,6 +2057,11 @@ def feed_entry(name): thumbnail_url = thumbnail.get('url') if not thumbnail_url: continue + # Sometimes youtube gives a wrong thumbnail URL. See: + # https://github.com/yt-dlp/yt-dlp/issues/233 + # https://github.com/ytdl-org/youtube-dl/issues/28023 + if 'maxresdefault' in thumbnail_url: + thumbnail_url = thumbnail_url.split('?')[0] thumbnails.append({ 'height': int_or_none(thumbnail.get('height')), 'url': thumbnail_url,