aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbashonly <bashonly@bashonly.com>2023-07-28 17:21:45 -0500
committerbashonly <bashonly@bashonly.com>2023-07-29 10:30:32 -0500
commit9a04113dfbb69b904e4e2bea736da293505786b8 (patch)
treee259637b859501f7f55d04792e2105fae5f3d781
parentba06d77a316650ff057347d224b5afa8b203ad65 (diff)
downloadhypervideo-pre-9a04113dfbb69b904e4e2bea736da293505786b8.tar.lz
hypervideo-pre-9a04113dfbb69b904e4e2bea736da293505786b8.tar.xz
hypervideo-pre-9a04113dfbb69b904e4e2bea736da293505786b8.zip
[ie/Reddit] Fix thumbnail extraction
Authored by: bashonly
-rw-r--r--yt_dlp/extractor/reddit.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yt_dlp/extractor/reddit.py b/yt_dlp/extractor/reddit.py
index 13615e82f..813e62874 100644
--- a/yt_dlp/extractor/reddit.py
+++ b/yt_dlp/extractor/reddit.py
@@ -240,6 +240,7 @@ class RedditIE(InfoExtractor):
'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 []: