pyInstagram
pyInstagram copied to clipboard
Location metadata not fetched when Media object is updated
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 :)