From dcc57f11c42021c2e77f066a1f506316156a6cf0 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Sun, 10 Feb 2019 20:55:07 +0100 Subject: [PATCH] Fix falsely-raised PostChangedException --- instaloader/structures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instaloader/structures.py b/instaloader/structures.py index 4a7d0b2..aef7e8e 100644 --- a/instaloader/structures.py +++ b/instaloader/structures.py @@ -128,7 +128,7 @@ class Post: pic_json = self._context.get_json("p/{0}/".format(self.shortcode), params={}) self._full_metadata_dict = pic_json['entry_data']['PostPage'][0]['graphql']['shortcode_media'] self._rhx_gis_str = pic_json['rhx_gis'] - if self.mediaid != self._full_metadata_dict['id']: + if self.shortcode != self._full_metadata_dict['shortcode']: self._node.update(self._full_metadata_dict) raise PostChangedException