pyInstagram icon indicating copy to clipboard operation
pyInstagram copied to clipboard

Location metadata not fetched when Media object is updated

Open maubarsom opened this issue 5 years ago • 0 comments

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 :)

maubarsom avatar Dec 12 '19 11:12 maubarsom