Movie List – movies are all null (Sometimes)
Hi all,
I’ve another problem^
I was just implementing the list/{id} method, when I realized that the TMDb API sometimes returns only null values for movies in a movie list.
For example:
http://api.themoviedb.org/3/list/509ec17b19c2950a0600050d?api_key=################################
Return the following JSON:
{"created_by":"Travis Bell",
"description":"Here's my list of best picture winners for the Oscars. Thought it would be neat to see them all together. There's a lot of movies here I have never even heard of.",
"favorite_count":12,"id":"509ec17b19c2950a0600050d","items":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
null,null,null,null,null,null,null],
"item_count":85,"iso_639_1":"en","name":"Best Picture Winners - The Academy Awards","poster_path":"/efBm2Nm2v5kQnO0w3hYcW6hVsJU.jpg"}
But when I open the list on the TMDb all movies are getting displayed
http://www.themoviedb.org/list/509ec17b19c2950a0600050d
…And some other API requests are working as expected, for example:
http://api.themoviedb.org/3/list/50cbe90b19c2956de8047b4f?api_key=################################
Edit:
The item_status method returns also incorrect data for the list with id: 509ec17b19c2950a0600050d
Request: (MovieId 1422 => The Departed)
JSON:
{"id":"509ec17b19c2950a0600050d","item_present":false}
(The movie is present in the list, but the API returns item_present=false)
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on June 25, 2013 at 9:51 AM
Hey musiumincapitiss,
Thanks for reporting this. I've created a new ticket about the list items being null.
I'm pretty sure the item_status will work once the item is present, but in this case since they are all null, naturally they are not. I'll take a look at this today.
Thanks.
Reply by tmdb78260312
on June 25, 2013 at 10:04 AM
Thanks for your help.
Reply by Travis Bell
on June 25, 2013 at 12:21 PM
The lists should be working now.
Cheers.
Reply by tmdb78260312
on June 26, 2013 at 4:26 AM
Works like a charme now, thanks.