Skip to content

Commit

Permalink
Fixed User.profile_pic_url_hd for v1
Browse files Browse the repository at this point in the history
  • Loading branch information
adw0rd committed Jul 18, 2022
1 parent 53dc06b commit 1f4a6ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions instagrapi/extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ def extract_user_gql(data):
def extract_user_v1(data):
"""For Private API"""
data["external_url"] = data.get("external_url") or None
pic_hd = data.get("hd_profile_pic_url_info") or data.get("hd_profile_pic_versions")
data["profile_pic_url_hd"] = pic_hd.get("url")
return User(**data)


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

setup(
name='instagrapi',
version='1.16.23',
version='1.16.24',
author='Mikhail Andreev',
author_email='x11org@gmail.com',
license='MIT',
Expand Down

0 comments on commit 1f4a6ac

Please sign in to comment.