Skip to content

Commit

Permalink
merge #5323: [instagram] default 'likes' to '0'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Mar 12, 2024
2 parents b188cb2 + c210c7a commit e409731
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.get("like_count"),
"likes": post.get("like_count", 0),
"pinned": post.get("timeline_pinned_user_ids", ()),
"date": text.parse_timestamp(post.get("taken_at")),
}
Expand Down

0 comments on commit e409731

Please sign in to comment.