diff options
author | Sergey M․ <dstftw@gmail.com> | 2020-12-26 22:42:58 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2020-12-26 22:42:58 +0700 |
commit | 6911312e53dc2b2ac76450741e7e86d963cb939a (patch) | |
tree | d34e6baef849a7b4c9895d2fd3f676a16e4cd9b4 | |
parent | f22b5a6b960bca57990ede16d0e06603d1b9ab0d (diff) |
[instagram] Improve thumbnail extraction
-rw-r--r-- | youtube_dl/extractor/instagram.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/instagram.py b/youtube_dl/extractor/instagram.py index 3f5648c0c..c1526f865 100644 --- a/youtube_dl/extractor/instagram.py +++ b/youtube_dl/extractor/instagram.py @@ -156,7 +156,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('display_url') 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') |