From a1d6041497c50d59c6d275125d21cd3b613f6a1c Mon Sep 17 00:00:00 2001 From: nao20010128nao Date: Wed, 11 Nov 2020 08:59:09 +0000 Subject: [PATCH] [instagram] fix thumbnail URL extraction --- youtube_dlc/extractor/instagram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dlc/extractor/instagram.py b/youtube_dlc/extractor/instagram.py index bbfe23c76..c3eba0114 100644 --- a/youtube_dlc/extractor/instagram.py +++ b/youtube_dlc/extractor/instagram.py @@ -151,7 +151,7 @@ class InstagramIE(InfoExtractor): 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')