I happened to notice that for some queries the API is returning conflicting numbers of results, total_results is sometimes higher than the actual number of results, as an example, querying for 'Kung Fu Panda' returns:
{ "page": 1 "results": { "0": { "adult": "false" "backdrop_path": "/UJwhgwAxU42cm9XKncO9boFAEV.jpg" "id": 9502 "original_title": "Kung Fu Panda" "release_date": "2008-06-05" "poster_path": "/kShWOYf66HOuHTuCdIULgW4D60S.jpg" "popularity": 6.76111832255882 "title": "Kung Fu Panda" "vote_average": 6.4 "vote_count": 878 } "1": { "adult": "false" "backdrop_path": "null" "id": 152404 "original_title": "Kung Fu Panda: Po's Winter Wonderland" "release_date": "2010-11-15" "poster_path": "/3gxajJRugsFObstuWZPakdlGr66.jpg" "popularity": 0.23 "title": "Kung Fu Panda: Po's Winter Wonderland" "vote_average": 5 "vote_count": 2 } "2": { "adult": "false" "backdrop_path": "/eyiE1vuizMKVu8MoZkg2xsramFl.jpg" "id": 49444 "original_title": "Kung Fu Panda 2" "release_date": "2011-05-25" "poster_path": "/fTztLcGmOe7BzPbJzRaHXdEI2WG.jpg" "popularity": 5.99808764571379 "title": "Kung Fu Panda 2" "vote_average": 6.4 "vote_count": 476 } "3": { "adult": "false" "backdrop_path": "/a14RyRGC3kz7YeQtvphuYMtou9v.jpg" "id": 50393 "original_title": "Kung Fu Panda Holiday" "release_date": "2010-11-26" "poster_path": "/gp18R42TbSUlw9VnXFqyecm52lq.jpg" "popularity": 1.92774344266228 "title": "Kung Fu Panda Holiday" "vote_average": 7.7 "vote_count": 5 } "4": { "adult": "false" "backdrop_path": "null" "id": 140300 "original_title": "Kung Fu Panda 3" "release_date": "2015-12-23" "poster_path": "null" "popularity": 0.9384 "title": "Kung Fu Panda 3" "vote_average": 0 "vote_count": 0 } "5": { "adult": "false" "backdrop_path": "/hrjeL2XpS5NeFc1hdmJ8DkCPdBM.jpg" "id": 81003 "original_title": "Kung Fu Panda: Secrets of the Masters" "release_date": "2011-12-12" "poster_path": "/lNMQQaU2UVYprlhuFocavx0ICCL.jpg" "popularity": 1.69357630174051 "title": "Kung Fu Panda: Secrets of the Masters" "vote_average": 5.6 "vote_count": 5 } "6": { "adult": "false" "backdrop_path": "/51xNCEVTIVNdq1q3p8y16je8DZT.jpg" "id": 15854 "original_title": "Kung Fu Panda: Secrets of the Furious Five" "release_date": "2008-11-08" "poster_path": "/1K82HieXcMZIQjaYel9cTyzsG9g.jpg" "popularity": 1.53370978896539 "title": "Kung Fu Panda: Secrets of the Furious Five" "vote_average": 7.1 "vote_count": 12 } } "total_pages": 1 "total_results": 8 }
Seems to be either a missing result, or an off-by-one in calculating total_results, I'm guessing that this is a bug somewhere along the line.
Nevari atrast filmu vai TV pārraidi? Jāpiesakās, lai to izveidotu.
Vēlies novērtēt šo vienumu vai pievienot to sarakstam?
Neesi dalībnieks?
Atbilde no Travis Bell
on novembris 18, 2013 at 11:58 AM
This is being caused by some stale items in our Solr index. I've created a new ticket for this and will look at it when I get some time.
Cheers.