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

Location metadata not fetched when Media object is updated #69

Open
maubarsom opened this issue Dec 12, 2019 · 0 comments
Open

Location metadata not fetched when Media object is updated #69

maubarsom opened this issue Dec 12, 2019 · 0 comments

Comments

@maubarsom
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant