Open zoeames opened 7 years ago
Comment by zoeames Monday Oct 16, 2017 at 04:20 GMT
The /search/movies call returns an array of movies. Each movie has a key/value pair like poster_path:"/weUSwMdQIa3NaXVzwUoIIcAi85d.jpg",
. I would like to use the poster_path but need to make an absolute path to that image. The API documents how to do that HERE
The absolute paths need to look like this:
https://image.tmdb.org/t/p/w500/kqjL17yufvn9OVLyXYpvtyrFfak.jpg
Comment by zoeames Monday Oct 16, 2017 at 04:22 GMT
I am going to use w342 as my size - that coes where it says w500.
This means I just need a way to get the url before - https://image.tmdb.org/t/p
To do this I will use /configuration but only save the image part of the result.
Comment by zoeames Monday Oct 16, 2017 at 04:26 GMT
Modify javascripts/tmdb.js
Add 2 functions:
modify 2 functions:
getConfig()
after it sets the key
Story
As a user, when I look at movie cards, I should see the movie poster.
Acceptance Criteria
When movies are displayed on the page Then the movies show up in cards And the movie poster should show