aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornao20010128nao <nao20010128@gmail.com>2020-11-11 08:59:09 +0000
committernao20010128nao <nao20010128@gmail.com>2020-11-11 08:59:09 +0000
commita1d6041497c50d59c6d275125d21cd3b613f6a1c (patch)
treeedc95749a5380fc7c9dfea1c6d0f4faf13e840e0
parent987d2e079ad0fd45df19b6183d38f83bcd528e9d (diff)
downloadhypervideo-pre-a1d6041497c50d59c6d275125d21cd3b613f6a1c.tar.lz
hypervideo-pre-a1d6041497c50d59c6d275125d21cd3b613f6a1c.tar.xz
hypervideo-pre-a1d6041497c50d59c6d275125d21cd3b613f6a1c.zip
[instagram] fix thumbnail URL extraction
-rw-r--r--youtube_dlc/extractor/instagram.py2
1 files changed, 1 insertions, 1 deletions
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')