mirror of
https://github.com/instaloader/instaloader.git
synced 2026-10-28 04:02:13 -07:00
Fix Profile.mediacount from the logged-out profile page
This commit is contained in:
@@ -1147,6 +1147,9 @@ class Profile:
|
||||
normalized['id'] = normalized['pk']
|
||||
if 'edge_owner_to_timeline_media' not in normalized and 'media_count' in normalized:
|
||||
normalized['edge_owner_to_timeline_media'] = {'count': normalized['media_count']}
|
||||
# The logged-out profile page has all_media_count instead.
|
||||
if 'edge_owner_to_timeline_media' not in normalized and 'all_media_count' in normalized:
|
||||
normalized['edge_owner_to_timeline_media'] = {'count': normalized['all_media_count']}
|
||||
if 'edge_felix_video_timeline' not in normalized:
|
||||
normalized['edge_felix_video_timeline'] = {'count': 0}
|
||||
if 'edge_followed_by' not in normalized and 'follower_count' in normalized:
|
||||
|
||||
Reference in New Issue
Block a user