[instagram] make accessing 'like_count' non-fatal (#5218)

This commit is contained in:
Mike Fährmann
2024-02-19 19:24:51 +01:00
parent 741fd00cec
commit a34312e3ac

View File

@@ -165,7 +165,7 @@ class InstagramExtractor(Extractor):
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")),
}