OlegYurchik / pyInstagram

This is a simple and easy-to-use library for interacting with the Instagram. The library works through the web interface of the Instagram and does not depend on the official API
MIT License
232 stars 49 forks source link

Location metadata not fetched when Media object is updated #69

Open maubarsom opened 4 years ago

maubarsom commented 4 years ago

For a Media with known location data, when calling

m = Media("B597mI1AlBy")
json_m = agent.update(m)

print(m.location) # Is a location object

# The object contains a name attribute but it is empty
print(m.location.name) # Is None

# However the information is available in the json obtained in the agent.update call
print(json_m['location']['name'] # Outputs 'London, United Kingdom'

Media.location should be updated :)