diff --git a/instagram_web_api/compatpatch.py b/instagram_web_api/compatpatch.py index 762d614a..874c19b2 100644 --- a/instagram_web_api/compatpatch.py +++ b/instagram_web_api/compatpatch.py @@ -102,7 +102,8 @@ def media(cls, media, drop_incompat_keys=False): media['videos'] = videos media['likes'] = { 'count': (media.get('likes', {}) - or media.get('edge_liked_by', {})).get('count', 0), + or media.get('edge_liked_by', {}) + or media.get('edge_media_preview_like', {})).get('count', 0), 'data': [] } media['comments'] = {