]> jfr.im git - yt-dlp.git/commitdiff
[ie/Reddit] Fix thumbnail extraction
authorbashonly <redacted>
Fri, 28 Jul 2023 22:21:45 +0000 (17:21 -0500)
committerbashonly <redacted>
Sat, 29 Jul 2023 15:30:32 +0000 (10:30 -0500)
Authored by: bashonly

yt_dlp/extractor/reddit.py

index 13615e82f9dfd3f1681453056f4516e65100b67a..813e62874c1f83320796de6d611af2810798c5dc 100644 (file)
@@ -240,6 +240,7 @@ def add_thumbnail(src):
                 'url': unescapeHTML(thumbnail_url),
                 'width': int_or_none(src.get('width')),
                 'height': int_or_none(src.get('height')),
+                'http_headers': {'Accept': '*/*'},
             })
 
         for image in try_get(data, lambda x: x['preview']['images']) or []: