Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #81 from andr81/master
Browse files Browse the repository at this point in the history
fixed bug if thumbnail_resources not in node
  • Loading branch information
Oleg Yurchik authored Jun 11, 2020
2 parents 077ead9 + 1acb4e9 commit c772f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instagram/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def set_data(self, data):
child.display_url = edge["node"]["display_url"]
if "display_resources" in edge["node"]:
child.resources = [resource["src"] for resource in edge["node"]["display_resources"]]
else:
elif "thumbnail_resources" in edge["node"]:
child.resources = [resource["src"] for resource in edge["node"]["thumbnail_resources"]]
child.is_album = False
self.album.add(child)
Expand Down

0 comments on commit c772f1a

Please sign in to comment.