diff options
author | u-spec-png <54671367+u-spec-png@users.noreply.github.com> | 2021-10-31 14:20:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-31 19:50:09 +0530 |
commit | c588b602d34f005dc018ae004281226741414192 (patch) | |
tree | dbaab1b37b4e68f7886d98d6e487aa38907e8ba2 | |
parent | f0ffaa1621fc40ba033aa3c98a14aa4c93533915 (diff) | |
download | hypervideo-pre-c588b602d34f005dc018ae004281226741414192.tar.lz hypervideo-pre-c588b602d34f005dc018ae004281226741414192.tar.xz hypervideo-pre-c588b602d34f005dc018ae004281226741414192.zip |
[Instagram] Fix incorrect resolution (#1494)
Authored by: u-spec-png
-rw-r--r-- | yt_dlp/extractor/instagram.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/instagram.py b/yt_dlp/extractor/instagram.py index 6ed20d9c6..4eca9eb92 100644 --- a/yt_dlp/extractor/instagram.py +++ b/yt_dlp/extractor/instagram.py @@ -228,8 +228,8 @@ class InstagramIE(InstagramBaseIE): dict) if media: video_url = media.get('video_url') - height = try_get(media, lambda x: x['dimensions']['height']) - width = try_get(media, lambda x: x['dimensions']['width']) + height = int_or_none(self._html_search_meta(('og:video:height', 'video:height'), webpage)) or try_get(media, lambda x: x['dimensions']['height']) + width = int_or_none(self._html_search_meta(('og:video:width', 'video:width'), webpage)) or try_get(media, lambda x: x['dimensions']['width']) description = try_get( media, lambda x: x['edge_media_to_caption']['edges'][0]['node']['text'], compat_str) or media.get('caption') |