projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f22b5a6
)
[instagram] Improve thumbnail extraction
author
Sergey M․
<dstftw@gmail.com>
Sat, 26 Dec 2020 15:42:58 +0000
(22:42 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 26 Dec 2020 15:42:58 +0000
(22:42 +0700)
youtube_dl/extractor/instagram.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/instagram.py
b/youtube_dl/extractor/instagram.py
index 3f5648c0c593eedb72168cc265338a90044a83eb..c1526f8653e2c4c6031df6618b420cb1a5333b79 100644
(file)
--- 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')