Skip to content

Commit

Permalink
[instagram] make accessing 'like_count' non-fatal (#5218)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Feb 19, 2024
1 parent 741fd00 commit a34312e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/instagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def _parse_post_rest(self, post):
data = {
"post_id" : post["pk"],
"post_shortcode": post["code"],
"likes": post["like_count"],
"likes": post.get("like_count"),
"pinned": post.get("timeline_pinned_user_ids", ()),
"date": text.parse_timestamp(post.get("taken_at")),
}
Expand Down

0 comments on commit a34312e

Please sign in to comment.