]> jfr.im git - yt-dlp.git/blobdiff - youtube_dlc/extractor/instagram.py
[instagram] fix thumbnail URL extraction
[yt-dlp.git] / youtube_dlc / extractor / instagram.py
index bbfe23c762c4fdab06810ef828aadb29e831f003..c3eba011442353a4e3c377ee68737993b2573a38 100644 (file)
@@ -151,7 +151,7 @@ def _real_extract(self, url):
                 description = try_get(
                     media, lambda x: x['edge_media_to_caption']['edges'][0]['node']['text'],
                     compat_str) or media.get('caption')
-                thumbnail = media.get('display_src')
+                thumbnail = media.get('display_src') or media.get('thumbnail_src')
                 timestamp = int_or_none(media.get('taken_at_timestamp') or media.get('date'))
                 uploader = media.get('owner', {}).get('full_name')
                 uploader_id = media.get('owner', {}).get('username')